Move site.debug to _dev, _prod launchers.
This commit is contained in:
parent
b96f0cfc96
commit
fb5f2f2470
3 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,6 @@ site.jinja_env.add_extension('jinja2.ext.do')
|
|||
site.jinja_env.trim_blocks = True
|
||||
site.jinja_env.lstrip_blocks = True
|
||||
jinja_filters.register_all(site)
|
||||
site.debug = True
|
||||
site.localhost_only = False
|
||||
|
||||
session_manager = sessions.SessionManager(maxlen=10000)
|
||||
|
|
|
@ -25,6 +25,7 @@ import etiquette
|
|||
import backend
|
||||
|
||||
site = backend.site
|
||||
site.debug = True
|
||||
|
||||
HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https')
|
||||
LOG_LEVEL = vlogging.NOTSET
|
||||
|
|
|
@ -11,5 +11,6 @@ import backend
|
|||
backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app)
|
||||
|
||||
site = backend.site
|
||||
site.debug = False
|
||||
|
||||
backend.common.init_photodb()
|
||||
|
|
Loading…
Reference in a new issue