Use new local settings system
This commit is contained in:
parent
eadd1846e1
commit
daaff264a9
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
__pycache__/
|
__pycache__/
|
||||||
idre/local_settings.py
|
idre/settings_local.py
|
||||||
media/
|
media/
|
||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
|
*.code-workspace
|
||||||
|
|
8
idre/settings_dev.py
Normal file
8
idre/settings_dev.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
from .settings import * # pylint: disable=unused-wildcard-import
|
||||||
|
|
||||||
|
|
||||||
|
DEBUG = True
|
||||||
|
|
||||||
|
SECRET_KEY = 'dev'
|
||||||
|
|
||||||
|
ALLOWED_HOSTS = ['*']
|
|
@ -8,7 +8,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "idre.local_settings")
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'idre.settings_local')
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "idre.local_settings")
|
if __name__ == '__main__':
|
||||||
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'idre.settings_local')
|
||||||
|
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue