Updation of css file

9 views
Skip to first unread message

Sahil Sharma

unread,
Nov 8, 2019, 1:04:05 PM11/8/19
to Django users

2019-11-08-1573235753_screenshot_1920x1080.jpg




Hello everyone

My html page in not loading the css file dispite I have linked my the 2.css with my html page home.html and also in the terminal it is showing Not Found: /static/bookcollection/css/2.css and after a second or two it start showing  "GET /static/bookcollection/css/2.css HTTP/1.1" 404 2255 but than also the updated css file does not work.

Sudhanshu Raj

unread,
Nov 8, 2019, 1:21:40 PM11/8/19
to django...@googlegroups.com
Hi, 
You should configure your setting.py link below


And also load your static file in home.html in Jinja formate

Run python manage.py collectstatic

This will might work for you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13993ff4-b7f8-4842-95e1-bfe4e435f754%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages