playma / flask-file-admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-file-admin

This example shows how to integrate Flask-Login authentication with Flask-Admin using the SQLAlchemy backend.

To run this example:

  1. Create and activate a virtual environment:
virtualenv env
source env/bin/activate
  1. Install requirements:
pip install -r 'requirements.txt'
  1. Run the application:
python app.py

The first time you run this example, a sample sqlite database gets populated automatically. To suppress this behaviour, comment the following lines in app.py::

if not os.path.exists(database_path):
    build_sample_db()

About


Languages

Language:Python 81.2%Language:HTML 18.8%