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