please i need assistance with mine css file .Mine base.html file failed to load my style.css.

14 views
Skip to first unread message

Obodoma Uzondu Vincent

unread,
Nov 21, 2018, 10:07:19 AM11/21/18
to django...@googlegroups.com
base.html file

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
    {% load static %}
    <link rel="stylesheet" type ='text/css' href="{% static 'general/style.css' %}">
    <link rel="short icon" type="images/jpg" href="{% static 'general/images/sun.jpg' %}">


Babatunde Akinyanmi

unread,
Nov 21, 2018, 10:23:52 AM11/21/18
to django...@googlegroups.com
Hi.

You haven't given us any useful information for assisting you. You will get more replies if you say what you have done, show what your settings look like, tell if your are using the development server, stuff like that. 

Welcome to the django community 

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACsKspnJ1iQMBnBn%2BKovaFBxzVFKA1GyEpKERFhcxvWSFTamEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Yavin Aalto Arba

unread,
Nov 22, 2018, 1:34:24 AM11/22/18
to django...@googlegroups.com
It might help to create a link to the static file and then check the error upon reaching the url. I also recommend using the django debugging tool bar! 

Otherwise,  it could really help if u were to share the location of the file in the project as well as the static url and other static related settings from settings.py

Mohan Goud

unread,
Nov 22, 2018, 3:21:01 AM11/22/18
to django...@googlegroups.com
If u r using pycharm free version. It doesn't support css files. kindly check that

Reply all
Reply to author
Forward
0 new messages