Why does DEBUG=False setting make my django Static Files Access fail? -


am building app using django workhorse. has been far - specified db settings, configured static directories, urls, views etc. trouble started sneaking in moment wanted render own beautiful , custom 404.html , 500.html pages.

i read docs on custom error handling, , set necessary configurations in urlsconf, created corresponding views , added 404.html , 500.html app's template directory (specified in settings.py too).

but docs you can view custom error views until debug off, did turn off test stuff, , that's when stuff goes berserk!

not fail view custom 404.html (actually, loads, because error pages each contain graphic error message -as nice image), source of erro page loads, nothing else loads! not linked css or javascript!

generally, once set debug = false, views load, linked content (css, javascript, images, etc) wont load! what's happening? there missing static files , debug setting?

with debug turned off django won't handle static files more - production web server (apache or something) should take care of that.


Comments