-1

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.

enter image description here

enter image description here

enter image description here

enter image description here

Barbora
  • 921
  • 1
  • 6
  • 11
Mim5
  • 1

1 Answers1

0

enter image description here

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