mirror of https://github.com/snachodog/mybuddy.git
Set default settings file in manage.py and wsgi.py.
This commit is contained in:
parent
22779086a4
commit
3545265d02
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue