Bootstraps a simple Flask app with:
- Twitter Bootstrap integration via Fanstatic.
- MongoEngine and WTForms via Flask-MongoEngine
- Administration interface via Flask-SuperAdmin
- Authentification with Flask-Login
It is also Dotcloud-ready.
You need a running MongoDB server.
# […] create and activate a virtualenv
git clone https://github.com/abulte/Flask-Bootstrap-MongoEngine-Fanstatic.git
cd Flask-Bootstrap-MongoEngine-Fanstatic
pip install -r requirements.txt
python manage.py create_admin_user
python manage.py runserver
Go to http://localhost:4000. Default admin user/password is: admin@admin.com/secret.
You need a Dotcloud (free) account.
git clone https://github.com/abulte/Flask-Bootstrap-MongoEngine-Fanstatic.git
cd Flask-Bootstrap-MongoEngine-Fanstatic
dotcloud create flaskmongo #answer Y
dotcloud push
# wait for the end of the build
dotcloud run data python manage.py create_admin_user
- Admin interface at
/admin
- WTForms example at
/add
- Login and logout at
/login
and/logout
- Blueprints?