Make development-specific settings file
This commit is contained in:
parent
a99ff49cef
commit
fc848546dc
4 changed files with 4 additions and 1 deletions
0
lemoncurry/settings/__init__.py
Normal file
0
lemoncurry/settings/__init__.py
Normal file
3
lemoncurry/settings/dev.py
Normal file
3
lemoncurry/settings/dev.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from .base import *
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
|
@ -3,7 +3,7 @@ import os
|
|||
import sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lemoncurry.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lemoncurry.settings.dev")
|
||||
try:
|
||||
from django.core.management import execute_from_command_line
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue