File tree 4 files changed +9
-5
lines changed 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
sys .path .insert (0 , os .path .abspath (".." ))
20
20
sys .path .append (os .path .dirname (__file__ ))
21
- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "readthedocs.settings.dev " )
21
+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "readthedocs.settings.docker_compose " )
22
22
23
23
# Load Django after sys.path and configuration setup
24
24
# isort: split
Original file line number Diff line number Diff line change 3
3
import sys
4
4
5
5
if __name__ == "__main__" :
6
- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "readthedocs.settings.dev" )
6
+ os .environ .setdefault (
7
+ "DJANGO_SETTINGS_MODULE" , "readthedocs.settings.docker_compose"
8
+ )
7
9
sys .path .append (os .getcwd ())
8
10
9
11
from django .core .management import execute_from_command_line
Original file line number Diff line number Diff line change @@ -204,3 +204,6 @@ def DATABASES(self): # noqa
204
204
205
205
# This allows us to have CORS work well in dev
206
206
CORS_ORIGIN_ALLOW_ALL = True
207
+
208
+
209
+ DockerBaseSettings .load_settings (__name__ )
Original file line number Diff line number Diff line change 4
4
5
5
from celery import Celery
6
6
from django .conf import settings
7
-
8
7
from django_structlog .celery .steps import DjangoStructLogInitStep
9
8
10
9
11
10
def create_application ():
12
11
"""Create a Celery application using Django settings."""
13
12
os .environ .setdefault (
14
- ' DJANGO_SETTINGS_MODULE' ,
15
- ' readthedocs.settings.dev' ,
13
+ " DJANGO_SETTINGS_MODULE" ,
14
+ " readthedocs.settings.docker_compose" ,
16
15
)
17
16
18
17
application = Celery (settings .CELERY_APP_NAME )
You can’t perform that action at this time.
0 commit comments