Changeset - d11ed137fae9
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 years ago 2021-12-17 07:35:50
ben@sturm.com.au
Fix Django warning about old TEMPLATES_* settings.
1 file changed with 0 insertions and 7 deletions:
0 comments (0 inline, 0 general)
www/conservancy/settings.py
Show inline comments
...
 
@@ -25,31 +25,24 @@ SITE_ID = 2
 
ROOT_URLCONF = 'conservancy.urls'
 

	
 
FORCE_CANONICAL_HOSTNAME = False if DEBUG else 'sfconservancy.org'
 

	
 
ALLOWED_HOSTS = [ 'www.sfconservancy.org', 'aspen.sfconservancy.org', 'sfconservancy.org',  u'104.130.70.210' ]
 
if DEBUG:
 
    ALLOWED_HOSTS.append('localhost')
 

	
 
REDIRECT_TABLE = {
 
    'www.sf-conservancy.org': 'sfconservancy.org',
 
}
 

	
 
_root_dir = os.path.abspath(os.path.dirname(__file__))
 
TEMPLATE_DIRS = (
 
    os.path.join(_root_dir, 'templates'),
 
    os.path.join(_root_dir, 'static'),
 
)
 
del _root_dir
 

	
 
LOGGING = {
 
    'version': 1,
 
    'disable_existing_loggers': False,
 
    'formatters': {
 
        'default': {
 
            'format': '%(asctime)s %(levelname)s %(name)s: %(message)s',
 
            'datefmt': '%Y-%m-%d %H:%M:%S',
 
        },
 
    },
 
    'filters': {
 
        'require_debug_false': {
 
            '()': 'django.utils.log.RequireDebugFalse'
0 comments (0 inline, 0 general)