Beispiel #1
0
from Application import app

if __name__ == '__main__':
    app.run(debug=True)
else:
    app.run()
Beispiel #2
0
from Application import app
app.run()
Beispiel #3
0
__author__ = 'dimitris'

from Application import app

app.run(debug=True, host='0.0.0.0', port=5050)
Beispiel #4
0



def init_app():

    init_login()

    admin = Admin(app)
    admin.add_view(AdminViews(name='Admin View'))



if __name__ == '__main__':

    init_app()
    db.create_all()

    #Now we create a SUPERUSER in the User table if not created earlier.
    superuser = User.query.filter(User.email == SUPERUSER_USERNAME).scalar()
    if not superuser:
        try:
            entry = User(SUPERUSER_USERNAME,SUPERUSER_PASSWORD,True)
            db.session.add(entry)
            db.session.commit()
        except:
            db.session.rollback()


    app.run()
Beispiel #5
0
from Application import app
import os

if __name__ == "__main__":
    app.run(host='0.0.0.0',
            port=os.environ.get('APP_PORT', 5000),
            debug=os.environ.get('APP_DEBUG', True))
Beispiel #6
0
from Application import app

if __name__ == "__main__":
    app.run(port=5000, debug=False, host="0.0.0.0")
Beispiel #7
0
from Application import app

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
Beispiel #8
0
from Application import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=5000)
Beispiel #9
0
from Application import app

if __name__ == "__main__":
    app.run(host="0.0.0.0", port="5000")