Always load local.py in dev

pull/399/head
Jake Howard 2023-02-03 10:31:22 +00:00 zatwierdzone przez Matt Westcott
rodzic 304d82d051
commit e831dcee27
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -8,3 +8,8 @@ EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
WAGTAILADMIN_BASE_URL = "http://localhost:8000"
ALLOWED_HOSTS = ["*"]
try:
from .local import * # noqa
except ImportError:
pass

Wyświetl plik

@ -156,7 +156,6 @@ Next, we'll set up our local environment variables. We use [django-dotenv](https
to help with this. It reads environment variables located in a file name `.env` in the top level directory of the project. The only variable we need to start is `DJANGO_SETTINGS_MODULE`:
cp bakerydemo/settings/local.py.example bakerydemo/settings/local.py
echo "DJANGO_SETTINGS_MODULE=bakerydemo.settings.local" > .env
To set up your database and load initial data, run the following commands: