Skip to content

Commit 69681ca

Browse files
committed
Small updates
1 parent 2682651 commit 69681ca

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
pathlib.Path(__file__).resolve().parent / DUCK_PACKAGE_RELATIVE_PATH / "__init__.py"
1818
)
1919

20+
# This must be called before any use of the duck.settings module e.g. through duck.app
21+
os.environ["DUCK_SETTINGS_MODULE"] = "duck.etc.structures.projects.testing.web.settings"
22+
os.environ["DJANGO_SETTINGS_MODULE"] = "duck.etc.structures.projects.testing.web.backend.django.duckapp.duckapp.settings"
23+
2024

2125
# Entry point to sphinx
2226
def setup(app):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"main": {"pid": 5701, "start_time": 1762365736.4119763, "sys_argv": ["python3.13 -m unittest", "discover", "-s", "/storage/emulated/0/#code/duck/duck/tests", "-p", "test_*.py", "-t", "/storage/emulated/0/#code/duck/duck/tests"], "log_file": null}}
1+
{"main": {"pid": 29229, "start_time": 1774707884.9507627, "sys_argv": ["python3.13 -m unittest", "discover", "-s", "/storage/emulated/0/#code/duck/duck/tests", "-p", "test_*.py", "-t", "/storage/emulated/0/#code/duck/duck/tests"], "log_file": null}}

duck/tests/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
def set_settings(settings: Dict[str, Any]):
1717
# This must be called before any use of the duck.settings module e.g. through duck.app
18-
os.environ.setdefault("DUCK_SETTINGS_MODULE", "duck.etc.structures.projects.testing.web.settings")
19-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "duck.etc.structures.projects.testing.web.backend.django.duckapp.duckapp.settings")
18+
os.environ["DUCK_SETTINGS_MODULE"] = "duck.etc.structures.projects.testing.web.settings"
19+
os.environ["DJANGO_SETTINGS_MODULE"] = "duck.etc.structures.projects.testing.web.backend.django.duckapp.duckapp.settings"
2020

2121
# Import settings after setting the settings module
2222
from duck.settings import SETTINGS

0 commit comments

Comments
 (0)