From 3545265d0286060156bc6ab9007620c0437759f9 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sun, 22 Oct 2017 16:19:59 -0400 Subject: [PATCH] Set default settings file in manage.py and wsgi.py. --- README.md | 1 - babybuddy/wsgi.py | 3 ++- manage.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4b09d1f..9512f0c0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/babybuddy/wsgi.py b/babybuddy/wsgi.py index f0ac98d5..87f76c32 100644 --- a/babybuddy/wsgi.py +++ b/babybuddy/wsgi.py @@ -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() diff --git a/manage.py b/manage.py index 48ff48d9..4c4a55c1 100755 --- a/manage.py +++ b/manage.py @@ -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: