basic manage.py

This commit is contained in:
Kenneth Reitz
2011-06-12 18:08:49 -04:00
parent 3c260c2b81
commit 22195385c2
Executable
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flaskext.script import Manager, Command
app = Flask(__name__)
# configure your app
manager = Manager(app)
@manager.command
def hello():
"""Hello World!"""
print r'\o/'
if __name__ == "__main__":
manager.run()