Reverse order of local_settings loading in order to allow adding new installed apps

This commit is contained in:
Timothy Hobbs 2023-10-23 12:47:05 +02:00
parent 8d08b83446
commit 90c9b3311e
4 changed files with 4 additions and 6 deletions

View File

@ -89,6 +89,8 @@ An example `local_settings` configuration for utilizing AWS SES for email:
.. code-block:: python
from .settings import *
import os
DEFAULT_FROM_EMAIL = "support@bitswan.space"

View File

@ -0,0 +1 @@
from .settings import *

View File

@ -229,8 +229,3 @@ MEDIA_ROOT = '/data/media'
# for Django 3.2+, set default for autofields:
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
try:
from .local_settings import *
except ImportError:
pass

View File

@ -12,6 +12,6 @@ from django.core.wsgi import get_wsgi_application
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "standalone.config.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "standalone.config.local_settings")
application = get_wsgi_application()