powerdns-admin/app/__init__.py

15 lines
360 B
Python
Raw Normal View History

from werkzeug.contrib.fixers import ProxyFix
2015-12-13 09:34:12 +00:00
from flask import Flask
from flask.ext.login import LoginManager
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('config')
app.wsgi_app = ProxyFix(app.wsgi_app)
2015-12-13 09:34:12 +00:00
login_manager = LoginManager()
login_manager.init_app(app)
db = SQLAlchemy(app)
from app import views, models