What I had in mind was something along the lines of
{% if <"the current page url = '/'"> %}
{% include '...' %}
How can I make this work using template tags?
What I had in mind was something along the lines of
{% if <"the current page url = '/'"> %}
{% include '...' %}
How can I make this work using template tags?
You can try request.path
to get url path.
Other answer :
You can create your custom template context processor where you can store current page url.
Link : https://docs.djangoproject.com/en/1.10/ref/templates/api/#writing-your-own-context-processors