Have a website that I have 1 div black rectangle used a as footer, data are pulled from DB inside the footer.
I would like to show this footer on every template that I have created in the django template directory except INDEX.HTML main page (template). If I put it into the BASE.HTML it will be everywhere, if I spread it to all my 20 templates except INDEX.HTML I would need to edit every each template for data in the footer I dont want to do that. How can I achieve footer is showing in all templates except INDEX.HTML but using it only once for editing data in the footer. Is there a django command or something like IF template = index.html hide the footer etc similar logic or what is the best way to achieve this?
Thanks