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
|
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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue