Page Menu
Home
Search
Configure Global Search
Log In
Files
F13255892
manage.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
550 B
Subscribers
None
manage.py
View Options
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
Details
Attached
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
Attached To
rPS Pillar
Event Timeline
Log In to Comment