Page MenuHome

manage.py
No OneTemporary

manage.py

from application import app
from flask.ext.script import Manager
manager = Manager(app)
@manager.command
def create_all_tables():
pass
#db.create_all()
@manager.command
def runserver():
try:
import config
PORT = config.Development.PORT
HOST = config.Development.HOST
DEBUG = config.Development.DEBUG
except ImportError:
PORT = 5000
HOST = '0.0.0.0'
DEBUG = True
app.run(
port=PORT,
host=HOST,
debug=DEBUG)
if __name__ == '__main__':
manager.run()

File Metadata

Mime Type
text/x-python
Expires
Tue, Jul 5, 11:09 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
73/b2/6972c7629cdad9dec6a3a1d1955d

Event Timeline