pulumi-django-azure 1.0.41__py3-none-any.whl → 1.0.43__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.
Potentially problematic release.
This version of pulumi-django-azure might be problematic. Click here for more details.
- pulumi_django_azure/settings.py +7 -5
- {pulumi_django_azure-1.0.41.dist-info → pulumi_django_azure-1.0.43.dist-info}/METADATA +1 -1
- {pulumi_django_azure-1.0.41.dist-info → pulumi_django_azure-1.0.43.dist-info}/RECORD +4 -4
- {pulumi_django_azure-1.0.41.dist-info → pulumi_django_azure-1.0.43.dist-info}/WHEEL +0 -0
pulumi_django_azure/settings.py
CHANGED
|
@@ -115,6 +115,8 @@ if IS_AZURE_ENVIRONMENT:
|
|
|
115
115
|
"level": "INFO",
|
|
116
116
|
"class": "logging.handlers.RotatingFileHandler",
|
|
117
117
|
"filename": "/home/LogFiles/django.log",
|
|
118
|
+
# Wait to open the file until the first emit; to prevent locking issues
|
|
119
|
+
"delay": True,
|
|
118
120
|
# 50 MB
|
|
119
121
|
"maxBytes": 52428800,
|
|
120
122
|
"backupCount": 5,
|
|
@@ -172,14 +174,14 @@ if DJANGO_TASKS and REDIS_SIDECAR:
|
|
|
172
174
|
}
|
|
173
175
|
|
|
174
176
|
|
|
175
|
-
def patch_django_settings_for_azure():
|
|
177
|
+
def patch_django_settings_for_azure(INSTALLED_APPS: list, MIDDLEWARE: list, TEMPLATES: list):
|
|
176
178
|
"""
|
|
177
179
|
Patch the Django settings to add the required apps and middleware.
|
|
178
|
-
"""
|
|
179
|
-
global INSTALLED_APPS
|
|
180
|
-
global MIDDLEWARE
|
|
181
|
-
global TEMPLATES
|
|
182
180
|
|
|
181
|
+
:param INSTALLED_APPS: Reference to INSTALLED_APPS setting.
|
|
182
|
+
:param MIDDLEWARE: Reference to MIDDLEWARE setting.
|
|
183
|
+
:param TEMPLATES: Reference to TEMPLATES setting.
|
|
184
|
+
"""
|
|
183
185
|
# Insert collectfasta at the correct position
|
|
184
186
|
INSTALLED_APPS.insert(INSTALLED_APPS.index("django.contrib.staticfiles"), "collectfasta")
|
|
185
187
|
|
|
@@ -7,7 +7,7 @@ pulumi_django_azure/management/commands/purge_cache.py,sha256=yjMoNvEPFmtuZctOKX
|
|
|
7
7
|
pulumi_django_azure/management/commands/purge_cdn.py,sha256=8iLuqjndvreTHXRp37sjpvcNltdGTpwhY9YiQokS_P0,2095
|
|
8
8
|
pulumi_django_azure/management/commands/test_redis.py,sha256=_jQXmv48NSPVGrgGZTmASWm0WAWYhqt9HaE3XdJ22U4,10225
|
|
9
9
|
pulumi_django_azure/middleware.py,sha256=XykZAmilyCaZR_5mM950h2WI4053HRqr95LGV1p8uR0,2472
|
|
10
|
-
pulumi_django_azure/settings.py,sha256=
|
|
11
|
-
pulumi_django_azure-1.0.
|
|
12
|
-
pulumi_django_azure-1.0.
|
|
13
|
-
pulumi_django_azure-1.0.
|
|
10
|
+
pulumi_django_azure/settings.py,sha256=9fI_b0vdlvfZNU0LVIIJ4oQB3wrXdYeosfWqdrakQvw,6742
|
|
11
|
+
pulumi_django_azure-1.0.43.dist-info/METADATA,sha256=XtuGvuCmc6JvttZxFwbSvkVIndeIJGrrkVWYhwGZtV4,9750
|
|
12
|
+
pulumi_django_azure-1.0.43.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
13
|
+
pulumi_django_azure-1.0.43.dist-info/RECORD,,
|
|
File without changes
|