Local vs production¶
| Concern | Production (Azure App Service) | Local / non-Azure |
|---|---|---|
IS_AZURE_ENVIRONMENT |
true (set by Pulumi) |
unset/false |
| HSTS / secure cookies / SSL redirect | Enabled | Not applied by this package |
| Database | Entra token password, sslmode=require |
Not configured by this package unless you set the same env vars |
| Storage / CDN / email | From App Settings (MAILERS when AZURE_COMMUNICATION_SERVICE_ENDPOINT is set) |
Only if you set matching env vars |
| Redis / tasks / cron | Sidecar + flags when enabled | Off unless you set REDIS_SIDECAR / DJANGO_TASKS / DJANGO_RQ_CRON |
build_info |
From BASE_DIR/build-info.json |
In DEBUG, synthetic values |
| Deploy scripts | Used by Oryx / startup | Not used unless you run them |
| Health path | /health-check via App Setting |
Settings default is /health if env unset |
Importing pulumi_django_azure.settings locally is mostly inert without Azure environment variables. Provide your own local DATABASES, storages, and MAILERS (or leave AZURE_COMMUNICATION_SERVICE_ENDPOINT unset) as usual.