Django 1.3: Can't access static files after trun off DEBUG -


this very weird.

on dev machine, seems fine when set debug=true, if turn off, breaks.

i can see requested urls same. possible reasons this?

 in url  + static("static", document_root= static_root ) 

the static_root absolute path static folder, it's right, cost works when debug turned on.

from django docs regarding serving static files in development:

this work if debug true.

that's because view grossly inefficient , insecure. intended local development, , should never used in production.

in short, if using devserver , debug false, static files won't served.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -