May-09-2020, 01:43 AM
I have a link to a css file in my html but it's not applying to the site. There are no errors and when I go to inspect -> sources the css file is not there, so I see the problem, but I don't see the solution. Thanks in advance for any help.
This is the base html file that loads in the css.
Then I have
This is the base html file that loads in the css.
{% load static %} <link rel="'stylesheet" type="text/css" href="{% static 'polls/styles.css' %}"> <!DOCTYPE html> <html lang="en"> . . .This is the css file in case you want to see it
li a { color: green; } body { } .question-display { border-color: black; border-width: 5px; position: center; } .question-link { } . . .This is the line of code I have in settings
STATIC_URL = '/static/'
.Then I have
'django.contrib.staticfiles'
under INSTALLED_APPS
in settings.