From 05902bec7a50e235797721591cf0b6f4b26a8d0d Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Sun, 19 May 2019 02:30:55 -0700 Subject: [PATCH] settings.py: absolute paths for log and templates for wsgi --- procat2/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/procat2/settings.py b/procat2/settings.py index 4607c4b..745967d 100644 --- a/procat2/settings.py +++ b/procat2/settings.py @@ -31,7 +31,7 @@ LOGGING = { 'file': { 'level': 'DEBUG', 'class': 'logging.FileHandler', - 'filename': 'debug.log', + 'filename': '/var/log/django.log', }, 'console': { 'class': 'logging.StreamHandler', @@ -108,7 +108,7 @@ ROOT_URLCONF = 'procat2.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': ['templates'], + 'DIRS': [TEMPLATES_DIR], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -160,7 +160,7 @@ USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) -# https://docs.djangoproject.com/en/2.1/howto/static-files/ +# https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = '/static/' # (STATIC_ROOT set in settings_ansible.py) STATICFILES_DIRS = [