allow local_settings to over-ride settings

This commit is contained in:
Sanjay Bhangar 2017-05-20 17:49:32 +05:30
parent 3d5434799f
commit 529c81bf06
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.pyc *.pyc
local_settings.py

View File

@ -120,3 +120,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/ # https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
try:
from local_settings import *
except:
pass