pulumi-django-azure 1.0.23__py3-none-any.whl → 1.0.24__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.

@@ -844,6 +844,7 @@ class DjangoDeployment(pulumi.ComponentResource):
844
844
  dedicated_app_service_sku: azure.web.SkuDescriptionArgs | None = None,
845
845
  vault_administrators: list[str] | None = None,
846
846
  cache_db: int | None = None,
847
+ startup_timeout: int = 300,
847
848
  ) -> azure.web.WebApp:
848
849
  """
849
850
  Create a Django website with it's own database and storage containers.
@@ -864,6 +865,7 @@ class DjangoDeployment(pulumi.ComponentResource):
864
865
  :param dedicated_app_service_sku: The SKU for the dedicated App Service Plan (optional).
865
866
  :param vault_administrators: The principal IDs of the vault administrators (optional).
866
867
  :param cache_db: The index of the cache database to use (optional).
868
+ :param startup_timeout: The startup timeout for the App Service (default is 300 seconds).
867
869
  """
868
870
 
869
871
  # Create a database
@@ -962,6 +964,10 @@ class DjangoDeployment(pulumi.ComponentResource):
962
964
  # scm_type=azure.web.ScmType.EXTERNAL_GIT,
963
965
  linux_fx_version=f"PYTHON|{python_version}",
964
966
  app_settings=[
967
+ # Startup settings
968
+ azure.web.NameValuePairArgs(name="WEBSITES_CONTAINER_START_TIME_LIMIT", value=str(startup_timeout)),
969
+ # To support our settings helper
970
+ azure.web.NameValuePairArgs(name="IS_AZURE_ENVIRONMENT", value="true"),
965
971
  # Build settings
966
972
  azure.web.NameValuePairArgs(name="SCM_DO_BUILD_DURING_DEPLOYMENT", value="true"),
967
973
  azure.web.NameValuePairArgs(name="PRE_BUILD_COMMAND", value="cicd/pre_build.sh"),
@@ -5,9 +5,9 @@ from .azure_helper import AZURE_CREDENTIAL, LOCAL_IP_ADDRESSES, get_db_password,
5
5
 
6
6
  env = environ.Env()
7
7
 
8
- SECRET_KEY = env("DJANGO_SECRET_KEY")
8
+ SECRET_KEY = env("DJANGO_SECRET_KEY", default=None)
9
9
 
10
- IS_AZURE_ENVIRONMENT = env("ORYX_ENV_NAME", default=None) is not None
10
+ IS_AZURE_ENVIRONMENT = env("IS_AZURE_ENVIRONMENT", default=False)
11
11
 
12
12
  # Some generic stuff we only need if we're running in Azure.
13
13
  # Most of the other stuff will check for the explicit variable we need.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.23
3
+ Version: 1.0.24
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License
@@ -1,12 +1,12 @@
1
1
  pulumi_django_azure/__init__.py,sha256=WoTHLNGnqc3dQoJtzrAJY8OVA7ReP6XFkDb9BXZGfJ8,117
2
2
  pulumi_django_azure/azure_helper.py,sha256=HU0cb85jTeh70qjv11foWuqgE-SNQ21bhMKsy1lB7MM,1903
3
- pulumi_django_azure/django_deployment.py,sha256=bSMczOl7nivLGVhfEXroDc_FyD0hXLne1TwhdhLMoNY,49260
3
+ pulumi_django_azure/django_deployment.py,sha256=VL9MTEq5rDLGdJPDQWHHCGbeC3Taw7vnpq_DGoMA6Ec,49705
4
4
  pulumi_django_azure/middleware.py,sha256=kOWtlY3kjmUgpTXjDhGIzNeJtBWjn8FRmGQRZqWsSG0,1589
5
- pulumi_django_azure/settings.py,sha256=cLSj1aWu6iKSFOeoeuSrC6TDpR4d6PUD-BJjaOx7FtY,5472
5
+ pulumi_django_azure/settings.py,sha256=hC1to1sgKeA7Lw43PlCx4AJ1AOQLuXbAhDIprD3uKc8,5482
6
6
  pulumi_django_azure/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  pulumi_django_azure/management/commands/purge_cdn.py,sha256=1lZI5liDIiOGyJRmo9gRn-BDLHaRuipaUmUAm06bRr0,2093
8
- pulumi_django_azure-1.0.23.dist-info/licenses/LICENSE,sha256=NX2LN3U319Zaac8b7ZgfNOco_nTBbN531X_M_13niSg,1087
9
- pulumi_django_azure-1.0.23.dist-info/METADATA,sha256=WhsPl3cERHbFqFjMJOiIlWJRoJpr40KU8qSqulqYDBw,12537
10
- pulumi_django_azure-1.0.23.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
11
- pulumi_django_azure-1.0.23.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
12
- pulumi_django_azure-1.0.23.dist-info/RECORD,,
8
+ pulumi_django_azure-1.0.24.dist-info/licenses/LICENSE,sha256=NX2LN3U319Zaac8b7ZgfNOco_nTBbN531X_M_13niSg,1087
9
+ pulumi_django_azure-1.0.24.dist-info/METADATA,sha256=yM_sCef90KAfykNnXKh0xdQ4LG64uYRk6AGBrHoYbNc,12537
10
+ pulumi_django_azure-1.0.24.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
11
+ pulumi_django_azure-1.0.24.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
12
+ pulumi_django_azure-1.0.24.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (77.0.1)
2
+ Generator: setuptools (77.0.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5