Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By Jake Steele
Connected Tutorial(This question is a follow-up to this tutorial):
How To Deploy a Django App on App PlatformAs I followed the tutorial I ran into this error
[2021-09-15 19:37:52] File "/workspace/portfoliobackend/settings.py", line 92, in <module>
[2021-09-15 19:37:52] raise Exception("DATABASE_URL environment variable not defined")
[2021-09-15 19:37:52] Exception: DATABASE_URL environment variable not defined
[2021-09-15 19:37:53]
[2021-09-15 19:37:53] ! Error while running '$ python manage.py collectstatic --noinput'.
[2021-09-15 19:37:53] See traceback above for details.
[2021-09-15 19:37:53]
[2021-09-15 19:37:53] You may need to update application code to resolve this error.
[2021-09-15 19:37:53] Or, you can disable collectstatic for this application:
[2021-09-15 19:37:53]
[2021-09-15 19:37:53] $ heroku config:set DISABLE_COLLECTSTATIC=1
[2021-09-15 19:37:53]
[2021-09-15 19:37:53] https://devcenter.heroku.com/article
And I’ve already set the environment variable DATABASE_URL equal to ${db.DATABASE_URL}.
However, when I navigate to the DB it says that it’s being provisioned. And it’s been going on like this for hours. Is there a way to fix the provision changes happening with the DB, or am I doing something else incorrectly in the tutorial?
James Wood
Shane Corn
Faizan Younas Tanooli
clea-peixoto
StrugglingDeveloper
Hamza kholti
Charley Kiser
31294f7ccf774ac7b3508a6438b989
Matthew Narrell
hello