Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I am getting Templatesyntax error in my Django app

I’m getting templatesyntax error, invalid block on line 66: ‘static’ ; did you forget to register or load this tag.

What am I doing wrong?

I have tried to delete and create the html file again but same error. It only happens in one of my files, others are working well

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Could you please check the template raising this error and see if you have the {% load static %} tag at the top of template, before any {% static %} tags. This tag is necessary for using static template tags in Django templates.

<!-- template_raising_error.html -->

{% load static %}
<!-- Your HTML code -->
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading