Skip to content

Latest commit

 

History

History
 
 

sqla

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

SQLAlchemy model backend integration examples.

To run this example:

  1. Clone the repository:

    git clone https://github.com/flask-admin/flask-admin.git
    cd flask-admin
    
  2. Create and activate a virtual environment:

    virtualenv env -p python3
    source env/bin/activate
    
  3. Install requirements:

    pip install -r 'examples/sqla/requirements.txt'
    
  4. Run the application:

    python examples/sqla/run_server.py
    

The first time you run this example, a sample sqlite database gets populated automatically. To start with a fresh database: rm examples/sqla/admin/sample_db.sqlite, and then restart the application.