Skip to content

Commit 602ce6b

Browse files
committed
Improve documentation of the behaviour of --extra-settings
1 parent f9dccab commit 602ce6b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

django_lightweight_queue/management/commands/queue_configuration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from ... import app_settings
77
from ...utils import get_backend, get_queue_counts, load_extra_settings
8+
from ...constants import SETTING_NAME_PREFIX
89
from ...cron_scheduler import get_cron_config
910

1011

@@ -22,7 +23,9 @@ def add_arguments(self, parser: CommandParser) -> None:
2223
'--extra-settings',
2324
action='store',
2425
default=None,
25-
help="The path to an additional django-style settings file to load",
26+
help="The path to an additional django-style settings file to load. "
27+
f"{SETTING_NAME_PREFIX}* settings discovered in this file will "
28+
"override those from the default Django settings.",
2629
)
2730

2831
def handle(self, **options: Any) -> None:

django_lightweight_queue/management/commands/queue_runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
load_extra_settings,
1919
)
2020
from ...runner import runner
21+
from ...constants import SETTING_NAME_PREFIX
2122
from ...machine_types import Machine, PooledMachine, DirectlyConfiguredMachine
2223

2324

@@ -69,7 +70,9 @@ def add_arguments(self, parser: CommandParser) -> None:
6970
'--extra-settings',
7071
action='store',
7172
default=None,
72-
help="The path to an additional django-style settings file to load",
73+
help="The path to an additional django-style settings file to load. "
74+
f"{SETTING_NAME_PREFIX}* settings discovered in this file will "
75+
"override those from the default Django settings.",
7376
)
7477
parser.add_argument(
7578
'--exact-configuration',

0 commit comments

Comments
 (0)