79297535

Date: 2024-12-20 14:36:50
Score: 1
Natty:
Report link

I know this is an old question, but I've been struggling with this issue all day, as part of the 'collectstatic' operation. I suddenly realised that this (manage.py collectstatic) is run in build (in my case in GitHub Actions), and not on Azure, and so of course doesn't have access to the Azure environment variables.

Collectstatic also doesn't need them, so I've updated my settings module to ignore anything that's not set in the environment, and it gets through the build process fine now.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Cormac