Bootstraps a simple Flask app with: Twitter Bootstrap integration via Fanstatic. MongoEngine and WTForms via Flask-MongoEngine Administration interface via Flask-SuperAdmin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
webapp
.dotcloudignore
.gitignore
LICENSE
README.md
dotcloud.yml
manage.py
requirements.txt
wsgi.py

README.md

DEPRECATED in favor of https://github.com/abulte/flask-quickstart

Flask Bootstrap MongoEngine Fanstatic

Purpose

Bootstraps a simple Flask app with:

It is also Dotcloud-ready.

Standard usage

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.

Dotcloud usage

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

Features

  • Admin interface at /admin
  • WTForms example at /add
  • Login and logout at /login and /logout

TODO

  • Flask-Security
  • Debug-Toolbar
  • Blueprints?