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 | Only if you set matching env vars |
| Redis / tasks | Sidecar + flags when enabled | Off unless you set REDIS_SIDECAR / DJANGO_TASKS |
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 email backends as usual.