I\'ve created a custom tag that I want to use, but Django can\'t seem to find it. My templatetags directory is set up like this:
pygmentize
In gameprofile.html please change the tag {% endblock content %} to {% endblock %} then it works otherwise django will not load the endblock and give error.
You need to change:
{% endblock content %}
to
{% endblock %}
The app that contains the custom tags must be in INSTALLED_APPS. So Are you sure that your directory is in INSTALLED_APPS ?
From the documentation:
The app that contains the custom tags must be in
INSTALLED_APPSin order for the{% load %}tag to work. This is a security feature: It allows you to host Python code for many template libraries on a single host machine without enabling access to all of them for every Django installation.
{% load static %}
<img src="{% static "my_app/example.jpg" %}" alt="My image">
in your templates, use the static template tag to build the URL for the given relative path using the configured STATICFILES_STORAGE.
{% load static %}
Please add this template tag on top of the HTML or base HTML file
The error is in this line: (% load pygmentize %}, an invalid tag.
Change it to {% load pygmentize %}