Skip to content

Management commands

Available when pulumi_django_azure is in INSTALLED_APPS.

Command Purpose
purge_cdn Purge the Azure Front Door / CDN endpoint (used after collectstatic)
purge_cache Clear the Django cache backend
startup_tasks migrate + purge_cache in one process (called by cicd/startup.sh)
fix_cache_control Adjust cache-control on stored blobs
test_redis Connectivity check for the Redis sidecar

Startup runs startup_tasks and background collectstatic + purge_cdn automatically via cicd/startup.sh / cicd/collectstatic.sh. Translations are compiled at build time only, by python -m pulumi_django_azure.compilemessages in cicd/post_build.sh (not a management command: it must run without Django settings).