To download static files locally , if you don’t have it , install any form of collecting static files, and if you are using Django 1.3+, I believe that this is your settings.py should look if you refer to static files
Please note that I did not specify STATIC_ROOT . This is because I don’t have to build static files “yet”.
Collecting static files is to work around (writing) maintenance problems with several different static files, so they combined the staticfiles application, which was usually used to help with this problem. What this does, and described in the docs, is to take all the static files from all of your applications and put them in one (1) folder to simplify maintenance when placing your application in production.
So, the problem is that you “skipped” this step and why you get 404 when you try to access them. Therefore, you need to use the absolute path to your static files , i.e. on a Mac or Unix system, it should look something like this:
'/Users/cupcake/Documents/Workspaces/myDjangoProject/someOtherFolderPerhapsIfYouWant/static',
In addition, you can simplify and “fix” the need to have a hard path similar to the one I used to illustrate, and do it
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) STATICFILES_DIRS = ( PROJECT_ROOT + '/static/' )
This will also fix the portability issue. A good Stackoverflow post about this is found here.
Hope I made it a little clearer, otherwise, please correct me if I am wrong ^ _ ^!
To collect and manage static files in new versions of Django, read this link . Staticfiles application