I hope my message finds you well. I have this error: Invalid block tag on line 8: 'Static'/Style/style.css''. I followed all the solutions I found here and it didn't work.
Asked
Active
Viewed 110 times
1 Answers
0
Your reference to the css file is wrong. Try this:
href="{% Static 'Style/style.css' %}
also it is common practice to use lowercase variables in such case like so:
STATICFILES_DIR =
os.path.join(BASE_DIR, "static")
Additionally, I recommend to change your directory to static/CSS/your_styles.css

JSRB
- 2,492
- 1
- 17
- 48