mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
basic manage.py
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user