kopia lustrzana https://github.com/snarfed/bridgy-fed
don't use flask-gae-static on prod
rodzic
c9e534a59e
commit
2731e706f4
5
app.py
5
app.py
|
@ -1,6 +1,4 @@
|
|||
"""Main Flask application."""
|
||||
import logging
|
||||
|
||||
from flask import Flask
|
||||
from flask_caching import Cache
|
||||
import flask_gae_static
|
||||
|
@ -25,7 +23,8 @@ app.config.from_mapping(
|
|||
app.url_map.converters['regex'] = flask_util.RegexConverter
|
||||
app.after_request(flask_util.default_modern_headers)
|
||||
app.register_error_handler(Exception, flask_util.handle_exception)
|
||||
flask_gae_static.init_app(app)
|
||||
if appengine_info.DEBUG:
|
||||
flask_gae_static.init_app(app)
|
||||
|
||||
# don't redirect API requests with blank path elements
|
||||
app.url_map.redirect_defaults = True
|
||||
|
|
Ładowanie…
Reference in New Issue