Create a file called config.env
that contains environment variables in the following syntax: ENVIRONMENT_VARIABLE=value
.
ADMIN_EMAIL
: set to the default email for your first admin account (default isadmin@example.com
)ADMIN_PASSWORD
: set to the default password for your first admin account (default ispassword
)DATABASE_URL
: set to a sqlite database uri (default isdata-dev.sqlite
)FLASK_CONFIG
:development
orproduction
.
$ pip install -r requirements.txt
$ python manage.py recreate_db
$ python manage.py setup_dev
Note that this will create an admin user with email and password specified by the ADMIN_EMAIL
and ADMIN_PASSWORD
config variables. If not specified, they are both admin@example.com
and password
respectively.
$ python manage.py add_movie_data
$ source env/bin/activate
$ gunicorn manage:app --worker-class=gevent --workers 4