apis-acdhch-default-settings 0.1.14__py3-none-any.whl → 0.1.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- apis_acdhch_default_settings/settings.py +9 -3
- {apis_acdhch_default_settings-0.1.14.dist-info → apis_acdhch_default_settings-0.1.16.dist-info}/METADATA +1 -1
- apis_acdhch_default_settings-0.1.16.dist-info/RECORD +6 -0
- apis_acdhch_default_settings-0.1.14.dist-info/RECORD +0 -6
- {apis_acdhch_default_settings-0.1.14.dist-info → apis_acdhch_default_settings-0.1.16.dist-info}/WHEEL +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import re
|
|
2
3
|
from typing import Any, Dict
|
|
3
4
|
|
|
4
5
|
import dj_database_url
|
|
@@ -173,7 +174,7 @@ MIDDLEWARE = [
|
|
|
173
174
|
"crum.CurrentRequestUserMiddleware",
|
|
174
175
|
]
|
|
175
176
|
|
|
176
|
-
ROOT_URLCONF = "
|
|
177
|
+
ROOT_URLCONF = "apis_achdch_default_settings.urls"
|
|
177
178
|
|
|
178
179
|
TEMPLATES = [
|
|
179
180
|
{
|
|
@@ -186,8 +187,6 @@ TEMPLATES = [
|
|
|
186
187
|
"django.template.context_processors.request",
|
|
187
188
|
"django.contrib.auth.context_processors.auth",
|
|
188
189
|
"django.contrib.messages.context_processors.messages",
|
|
189
|
-
"apis_core.context_processors.custom_context_processors.list_entities",
|
|
190
|
-
"apis_core.context_processors.custom_context_processors.list_relations",
|
|
191
190
|
"apis_core.context_processors.custom_context_processors.list_apis_settings",
|
|
192
191
|
]
|
|
193
192
|
},
|
|
@@ -315,3 +314,10 @@ APIS_OSD_IMG_PREFIX = (
|
|
|
315
314
|
ALLOWED_CIDR_NETS = ["10.0.0.0/8", "127.0.0.0/8"]
|
|
316
315
|
|
|
317
316
|
DATABASES = { 'default': dj_database_url.config(default='sqlite:///db.sqlite3', conn_max_age=600) }
|
|
317
|
+
|
|
318
|
+
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
|
|
319
|
+
if os.environ.get("PUBLIC_URL"):
|
|
320
|
+
ALLOWED_HOSTS.append(re.sub(r"https?://", "", os.environ.get("PUBLIC_URL")))
|
|
321
|
+
|
|
322
|
+
if os.environ.get("ALLOWED_HOSTS"):
|
|
323
|
+
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(",")
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
apis_acdhch_default_settings/settings.py,sha256=qtqR_mzhxG7SzaK2dFIX-I4WDkiXNK4gUbR0n784tFM,9375
|
|
3
|
+
apis_acdhch_default_settings/urls.py,sha256=VDvjdb940573U-xuwGYwYZTJJRgTeSgnlNCm7Hj8kGs,946
|
|
4
|
+
apis_acdhch_default_settings-0.1.16.dist-info/METADATA,sha256=k-y8_amZWeMuzjZi-18VBNIKhOW366Qvk_szH786VCI,855
|
|
5
|
+
apis_acdhch_default_settings-0.1.16.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
6
|
+
apis_acdhch_default_settings-0.1.16.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
apis_acdhch_default_settings/settings.py,sha256=D_zRQUg2udbFeVz4AaUzqGmQoBg-0XjFfjET4YAZVCw,9284
|
|
3
|
-
apis_acdhch_default_settings/urls.py,sha256=VDvjdb940573U-xuwGYwYZTJJRgTeSgnlNCm7Hj8kGs,946
|
|
4
|
-
apis_acdhch_default_settings-0.1.14.dist-info/METADATA,sha256=jtrTVrFgqfjps0twaO1D_s63Woz2LK1vwInm8HWeRJk,855
|
|
5
|
-
apis_acdhch_default_settings-0.1.14.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
6
|
-
apis_acdhch_default_settings-0.1.14.dist-info/RECORD,,
|
|
File without changes
|