Set default settings file in manage.py and wsgi.py.

This commit is contained in:
Christopher Charbonneau Wells 2017-10-22 16:19:59 -04:00
parent 22779086a4
commit 3545265d02
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,6 @@ cd babybuddy
pip install pipenv pip install pipenv
pipenv install --dev pipenv install --dev
pipenv shell pipenv shell
export DJANGO_SETTINGS_MODULE=babybuddy.settings.development
python manage.py migrate python manage.py migrate
python manage.py createsuperuser python manage.py createsuperuser
npm install npm install

View File

@ -2,6 +2,7 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings") os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "babybuddy.settings.production")
application = get_wsgi_application() application = get_wsgi_application()

View File

@ -3,7 +3,8 @@ import os
import sys import sys
if __name__ == "__main__": if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "babybuddy.settings") os.environ.setdefault(
"DJANGO_SETTINGS_MODULE", "babybuddy.settings.development")
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError: except ImportError: