[Django]-Django – issue with loading css

2πŸ‘

βœ…

You need to add a space between the name of the template tag and its parameters, so it should be:

         ↓ a space between static and 'css/home.css'
{% static 'css/home.css' %}

The parser of the Django template engine has some peculiarities. For example, a tag should not be spanned over multiple lines, and like in Python’s method calls one should first list the positional parameters and then the named parameters.

Leave a comment