from Application import app if __name__ == '__main__': app.run(debug=True) else: app.run()
from Application import app app.run()
__author__ = 'dimitris' from Application import app app.run(debug=True, host='0.0.0.0', port=5050)
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()
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))
from Application import app if __name__ == "__main__": app.run(port=5000, debug=False, host="0.0.0.0")
from Application import app if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')
from Application import app if __name__ == '__main__': app.run(host='0.0.0.0', debug=True, port=5000)
from Application import app if __name__ == "__main__": app.run(host="0.0.0.0", port="5000")