DATABASE_URL not available in release command

I have previously been able to use DATABASE_URL in my Django app to run my database migrations. This still appears to work for my existing apps, however when I add a new app it’s not working. As best I can tell DATABASE_URL is not being set in my environment. This means that migrations obviously fail, since they can’t find the right database.

I am loading the environment variables directly from Django / Python, in case that matters. I saw this issue but it didn’t seem related.

Update: I think this is actually just because the DB didn’t provision/attach properly. Sorry about the false alarm!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.