(Oct-13-2017, 07:54 AM)hbknjr Wrote: you should have pasted the code here and not a screenshot link.
Django gives a real helpful traceback of error when debug is set to True. You can find the problem there.
By the way, in development Django serves the static files by collecting all of them(from different apps) in a single folder static. So your path needs to be according to that.
It should behref='{% static "test2.css" %}'
.
for folder structure:
'static'/ 'test2.css'It is a common practice to put the static files in a folder with the same name of the app(which you have done). For that, your folder structure should be.
'static'/ 'website2'/ 'test2.css'
I thought it was useful to include a screenshot so you could see the way my folders are structured, but I'll keep that in mind next time!
I followed your suggestion but it doesn't seem to work yet. when I go to the page on my local server I still only get HTML without CSS. The terminal tells me:
[13/Oct/2017 09:50:43] "GET /hello/ HTTP/1.1" 200 847
[13/Oct/2017 09:50:43] "GET /static/test2.css HTTP/1.1" 404 1640
is that the error message you reffered to?
(debug is set to true in the settings.py file)