Browse Source

Django 3.4 local_settings

Set a relative path for the local_settings.py to work in Python 3.4
pull/8/head
Guillaume Moigneu 9 years ago
parent
commit
d475f6f45e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/settings.py

+ 1
- 1
hc/settings.py View File

@ -126,6 +126,6 @@ COMPRESS_OFFLINE = True
EMAIL_BACKEND = "djmail.backends.default.EmailBackend"
try:
from local_settings import *
from .local_settings import *
except ImportError as e:
warnings.warn("local_settings.py not found, using defaults")

Loading…
Cancel
Save