the problem i'm having that, when comment out urlpattern in root urls.py file , restart server (using fastcgi on hostgator shared hosting) killing process , touching index.fcgi file, 404 error expected (since url no longer matched), when django processes 404.html template , sends returns it, bare html no static files or anything.
however, when try other url ones matched urlpatterns commented out (except ones match active pattern, of course), rendered 404 page proper css.
all of static files located in ~/public_html/, because that's apparently webserver (which have no control over) looks them.
i can't figure out why django (or web server) able find static files in 1 case, not in other...
thanks in advance ideas might have.
just make sure... know there @ least 2 different 404 pages, 1 webserver returns when url not defined in webserver config , second, 1 returned django, when webserver handed off request django urls.py not define pattern matching url?
in case aware of , 404 pages , without static content displayed in browser both served django, suggest @ requests browser sends static content. can in debug console of chrome, safari, firefox. there you'd able see what's different requests (likely urls) webserver returning static content 1 not other case.
Comments
Post a Comment