mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Reverse order of local_settings loading in order to allow adding new installed apps
This commit is contained in:
parent
8d08b83446
commit
90c9b3311e
@ -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"
|
||||
|
1
standalone/config/local_settings.py
Normal file
1
standalone/config/local_settings.py
Normal file
@ -0,0 +1 @@
|
||||
from .settings import *
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user