Move site.debug to _dev, _prod launchers.

master
voussoir 2021-01-19 15:49:28 -08:00
parent b96f0cfc96
commit fb5f2f2470
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
3 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,6 @@ site.jinja_env.add_extension('jinja2.ext.do')
site.jinja_env.trim_blocks = True site.jinja_env.trim_blocks = True
site.jinja_env.lstrip_blocks = True site.jinja_env.lstrip_blocks = True
jinja_filters.register_all(site) jinja_filters.register_all(site)
site.debug = True
site.localhost_only = False site.localhost_only = False
session_manager = sessions.SessionManager(maxlen=10000) session_manager = sessions.SessionManager(maxlen=10000)

View File

@ -25,6 +25,7 @@ import etiquette
import backend import backend
site = backend.site site = backend.site
site.debug = True
HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https') HTTPS_DIR = pathclass.Path(__file__).parent.with_child('https')
LOG_LEVEL = vlogging.NOTSET LOG_LEVEL = vlogging.NOTSET

View File

@ -11,5 +11,6 @@ import backend
backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app) backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app)
site = backend.site site = backend.site
site.debug = False
backend.common.init_photodb() backend.common.init_photodb()