Answer the question
In order to leave comments, you need to log in
css not working in django?
I work with django 2 but style.css doesn't work completely. (like part of the code works and the other does not). If the css code is inserted into the html file, then all the code will work correctly.
Here is how I included css and settings file
<link rel="stylesheet" type="text/css" href="{% static 'main.css' %}">
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question