diff options
-rwxr-xr-x | manage.py | 18 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..0002278 --- /dev/null +++ b/manage.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +from flask.ext.script import Manager, Server, Shell +from app import app + + +def main(): + manager = Manager(app) + manager.add_command( + "runserver", Server(host='::', use_debugger=False)) + manager.add_command( + "debug", Server(host='::', use_debugger=True)) + manager.add_command( + "shell", Shell(make_context=lambda: dict(app=app))) + manager.run() + + +if __name__ == '__main__': + main() diff --git a/requirements.txt b/requirements.txt index 7edd959..fb03b19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ Flask>=0.8 Flask-WTF +Flask-Script Werkzeug>=0.6 Jinja2>=2.4 WTForms>=1.0 |