Skip to content
Advertisement

Template syntax error Could not parse the remainder: ‘(“images/logo.png”)’ from ‘static(“images/logo.png”)’. in django-jinja template?

JavaScript

when including the static files in the Django-jinja template it shows an error. If I removed that line It worked. But I want to load my static files in jinja template.

Advertisement

Answer

First you have to load static at top of your html page

JavaScript

Then you have to use {% %} instead of {{ }}

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement