Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:09:54+00:00 2026-05-23T13:09:54+00:00

I want to make a very small change to the Django admin logout page.

  • 0

I want to make a very small change to the Django admin logout page.

I know how to use templates to override the Django admin templates, so I have tried to do the same thing with the logout file.

I have set up a new template at templates/registration/logged_out.html. The content of this file is 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 log out of admin, the site stops running.

I’ve found the Django docs page recommending the use of AdminSite for changes to the base template and logout pages, but is this really necessary for such a tiny change?

If so, does anyone have an example of how I might set up the logout template? I’m rather intimidated by the instructions for AdminSite.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:09:55+00:00Added an answer on May 23, 2026 at 1:09 pm

    The reason of manage.py runserver termination is an inheritance loop.

    Django loads “registration/logged_out.html” and that it tries to load it’s parent: “registration/logged_out.html”. Unfortunately parent is the same template and so we end up on the template inheritance loop.
    Manage.py will terminate with some variant of stack overflow error…

    You can easily escape the issue by extending the parent of original “registration/logged_out.html” -> “admin/base_site.html”. I.e:

    {% extends "admin/base_site.html" %}
    {% load i18n %}
    
    {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a></div>{% endblock %}
    
    {% 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 %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a very simple django upload application but I want to make it
I have style sheet with a class name changebackgroundcolor i want make change in
I have link for example domain.com/de/controler/action?param=value and I want make actionlink to keep same
So I'm making a very small program for personal use in tkinter, and I've
I have an iphone application but i want to make it run on ipad
How to obfuscate code quickly. I have a very small Java App and I
I have a Postgres 9.1.4 table with a few million rows. A very small
I am surprised at how long it takes to merge a very small change
I want to use small images and repeat them as backgrounds for components in
I am mapping out a very small database and have some design questions about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.