[Answered ]-How do I create a template tag for including template files without parsing the template tags in Django?

2👍

The built-in ssi template tag should do what you want: https://docs.djangoproject.com/en/1.3/ref/templates/builtins/#ssi

{% ssi "my_template.html" %}

Make sure to read the note on defining ALLOWED_INCLUDE_ROOTS.

👤roam

Leave a comment