settings.py: absolute paths for log and templates for wsgi

This commit is contained in:
Seth Ladygo
2019-05-19 02:30:55 -07:00
parent a3ccd6fa3e
commit 05902bec7a

View File

@ -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 = [