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
Post a Comment