How to check current page on index page in Django template?
{% if What Goes Here??? %} // whatever {% endif %}
You can simply add your code template to the index page template itself.
TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', ... ) {% if request.path == "/" %} ... {% endif %}