I want to make a very small change to the Django admin exit page.
I know how to use templates to override Django admin templates, so I tried to do the same with the exit file.
I installed a new template in templates/registration/logged_out.html . The contents of this file are as follows:
{% extends "registration/logged_out.html" %} {% block content %} <p>Thanks for using the site.</p> <p><a href="../">Log in again</a></p> <p><a href="/">Return to the home page</a></p> {% endblock %}
However, something is definitely wrong, because when I try to exit admin, the site stops working.
I found a Django docs page recommending using AdminSite to change the base template and exit pages, but is it really necessary for such a tiny change?
If so, does anyone have an example of how I can customize the exit template? I'm pretty intimidated by the instructions for AdminSite.
Thanks.
source share