trant trum
trant trum

Reputation: 219

Static files won't work if debug = False

I am trying to deploy django project to heroku. When I have debug as False my static files won't work. If I deploy debug = True in my settings page, the static files work. Any thoughts?

Upvotes: 1

Views: 246

Answers (1)

Burhan Khalid
Burhan Khalid

Reputation: 174642

For production (that is, DEBUG = False), you need to use the dj-static library as detailed in the official documentation on heroku

Upvotes: 1

Related Questions