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
pipenv install --dev
pipenv shell
export DJANGO_SETTINGS_MODULE=babybuddy.settings.development
python manage.py migrate
python manage.py createsuperuser
npm install

View File

@ -2,6 +2,7 @@ import os
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()

View File

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