I’m new to django, I’m trying to figure out how to include other html files from the same subfolder to my main template file.
I’ve tried the following to no avail:
{% include './_shared.html' %}
I’ll eventually have many template folders. Can someone help me out?
You have to put your sub folders inside your template directory
You have to define your template path in your settings.py
now you can
includethat template file like{% include '/yoursubfolder/file.html' %}