forked from MarseyWorld/MarseyWorld
fdsfsd
parent
1681f65eec
commit
535709092e
|
@ -16,7 +16,10 @@ import gevent
|
||||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
app = Flask(__name__, template_folder='templates')
|
if environ.get("CHRISTMAS"): templates = 'christmas/templates'
|
||||||
|
else: templates = 'templates'
|
||||||
|
app = Flask(__name__, template_folder=templates)
|
||||||
|
|
||||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3)
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3)
|
||||||
app.url_map.strict_slashes = False
|
app.url_map.strict_slashes = False
|
||||||
app.jinja_env.cache = {}
|
app.jinja_env.cache = {}
|
||||||
|
|
Loading…
Reference in New Issue