def init_views(app): login_manager = init_login(app) login_manager.login_view = "web.login" app.register_blueprint(views_app, url_prefix="")
def init_views(app): login_manager = init_login(app) login_manager.login_view="web.login" app.register_blueprint(views_app, url_prefix="")
import user.models import conf.models db.Model.metadata.create_all(db.engine) def init_controller(app): import common.controllers import user.controllers import conf.controllers pass def init_jinja(app): app.jinja_env.filters['markdown'] = markdown import user user.init_login(app) init_db() init_view(app) init_controller(app) init_jinja(app) # reverse proxy from werkzeug.contrib.fixers import ProxyFix app.wsgi_app = ProxyFix(app.wsgi_app) #app.run(host='0.0.0.0', port=8000) app.run(port=8000)