Hello all,
I recently took a minimal Django app live on Heroku. The problem is I can’t get the static images and CSS file to connect. I’ve added the necessary files like the Procfile to no avail.
Any assistance is greatly, appreciated.
Hello all,
I recently took a minimal Django app live on Heroku. The problem is I can’t get the static images and CSS file to connect. I’ve added the necessary files like the Procfile to no avail.
Any assistance is greatly, appreciated.
You need to use whitenoise to serve static files on Heroku. See Django and Static Assets | Heroku Dev Center
I also notice an SQLite database in your GitHub repo. Two things:
.gitignore
file in the repo so that it doesn’t get checked in.This was super helpful. Thanks for the quick reply!