pulumi-django-azure 1.0.41__tar.gz → 1.0.43__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.41
3
+ Version: 1.0.43
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  License-Expression: MIT
6
6
  Keywords: django,pulumi,azure
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "pulumi-django-azure"
7
- version = "1.0.41"
7
+ version = "1.0.43"
8
8
  description = "Simply deployment of Django on Azure with Pulumi"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Maarten Ureel", email = "maarten@youreal.eu" }]
@@ -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