mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 20:02:36 +02:00
feat(settings): Expose settings as a dict.
This makes it possible to use them in standalone scripts, when using `django.settings.configure(**settings_dict)`.
This commit is contained in:
parent
ef94389c03
commit
c1fe86747b
1 changed files with 3 additions and 0 deletions
|
@ -43,3 +43,6 @@ if path:
|
||||||
globals()["STATICFILES_DIRS"].insert(0, value)
|
globals()["STATICFILES_DIRS"].insert(0, value)
|
||||||
else:
|
else:
|
||||||
globals()[key] = value
|
globals()[key] = value
|
||||||
|
|
||||||
|
# Expose these settings for consumption by e.g. django.settings.configure.
|
||||||
|
settings_as_dict = {k: v for k, v in globals().items() if k.isupper()}
|
||||||
|
|
Loading…
Reference in a new issue