Skip to content
Branch: master
Find file History


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

To run this example:

  1. Clone the repository:

    git clone
    cd flask-admin
  2. Create and activate a virtual environment:

    virtualenv env
    source env/bin/activate
  3. Install requirements:

    pip install -r 'examples/auth-flask-login/requirements.txt'
  4. Run the application:

    python examples/auth-flask-login/

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

if not os.path.exists(database_path):
You can’t perform that action at this time.