zettlunic / Flask-Bootstrap-MongoEngine-Fanstatic

Bootstraps a simple Flask app with: Twitter Bootstrap integration via Fanstatic. MongoEngine and WTForms via Flask-MongoEngine Administration interface via Flask-SuperAdmin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Blueprints?

About

Bootstraps a simple Flask app with: Twitter Bootstrap integration via Fanstatic. MongoEngine and WTForms via Flask-MongoEngine Administration interface via Flask-SuperAdmin

License:Mozilla Public License 2.0