SpearPhisher
SpearPhisher copied to clipboard
Static assets missing
Cant retrieve anything under /static/3rd-party like css, js files.
What error Code are you getting in the console?
GET /static/3rd-party/botstrap/css/bootstrap.min.css HTTP/1.1" 404 122
Doesn't look like these have been pushed to the remote repo?
They are in the repo.
Your error msg looks like i have a typo botstrap instead of bootstrap. Just trying to find it in the templates
Just Cloned a copy to a new box. Looks ok for me.
[08/Jul/2015 14:57:14]"GET /static/3rd-party/bootstrap/css/bootstrap.min.css HTTP/1.1" 200 117150
That maybe my typo as copy and paste not working from HyperV. Will take another look!
Hi kev, I worked it out:
Serving the files
In addition to these configuration steps, you’ll also need to actually serve the static files.
During development, if you use django.contrib.staticfiles, this will be done automatically by runserver when DEBUG is set to True (see django.contrib.staticfiles.views.serve()).
This method is grossly inefficient and probably insecure, so it is unsuitable for production.
I was running with Debug set to False, this prevented the files being served. Setting debug back to true means they are delivered.
Of course, Now you say it, it makes sense. Thanks.
In this instance i think its easier just to stick in debug mode and have the development server serve the static files. Its not designed to be a large scale production platform serving a lot of users anyway.
Or set the Web Panel to use mod wsgi as well.
Updated the Install Instructions to stay in debug mode for now.