Example #1
0
#!/usr/bin/env python
from hasweb import app, init_for
from hasweb.models import db
init_for('dev')
db.create_all()
app.run('0.0.0.0', debug=True, port=6400)
Example #2
0
import sys
import os.path
sys.path.insert(0, os.path.dirname(__file__))
from hasweb import app as application, init_for
init_for('production')
Example #3
0
#!/usr/bin/env python
from hasweb import app, init_for
from hasweb.models import db
init_for('development')
with app.test_request_context():
    db.create_all()
app.run('0.0.0.0', debug=True, port=6400)