Exemple #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from werkzeug.contrib.fixers import ProxyFix

from sanity.factory import create_app

app = create_app(config=os.environ.get('FLASK_CONFIG'))
app.wsgi_app = ProxyFix(app.wsgi_app)


if __name__ == '__main__':
    app.run()
Exemple #2
0
def app(request):
    app = create_app(config_obj=TestConfig)
    return app