http status code 404 - Django: Static files missing when rendering template -


i using django 1.3 , trying deploy django project (client sent) on dev machine (ubuntu 12.04). problem regarding static files. directory structure follows:

project_name     media     static         css         img         js     settings.py 

here settings.py:

root = '/home/user/project_name'  media_root = '%s/media/' % root media_url = '/media/' static_root = '%s/static/' % root static_url = '/static/' staticfiles_dirs = () 

my site deployed css, js , imgs missing. same case admin interface. when use link http://mysite.com/static/js/some.js gives 404.

help appreciated , up-voting answer custom.

you don't mention configuring web server serve static files. need point @ directory collectstatic put them into.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -