Flask Registration
Starter app for managing users - login/logout, registration, and email confirmation.
Blog posts:
- Part 1: Handling Email Confirmation During Registration in Flask
- Part 2: The Minimum Viable Test Suite
QuickStart
Set Environment Variables
$ export APP_SETTINGS="project.config.DevelopmentConfig"
$ export APP_MAIL_USERNAME="foo"
$ export APP_MAIL_PASSWORD="bar"
or
$ export APP_SETTINGS="project.config.ProductionConfig"
$ export APP_MAIL_USERNAME="foo"
$ export APP_MAIL_PASSWORD="bar"
Update Settings in Production
SECRET_KEY
SQLALCHEMY_DATABASE_URI
Create DB
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
Run
$ python manage.py runserver
Testing
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov