Skip to content

Latest commit

 

History

History
 
 

sqla-custom-filter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example of custom filters for the SQLAlchemy backend.

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
    source env/bin/activate
    
  3. Install requirements:

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

    python examples/sqla-custom-filter/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()