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 536607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:50:23+00:00 2026-05-13T09:50:23+00:00

For example, let’s say I want to modify the breadcrumbs block of the admin/change_list.html

  • 0

For example, let’s say I want to modify the breadcrumbs block of the admin/change_list.html template in the Django admin. If I try to override this template like this:

{% extends "admin/change_list.html" %}
{% block breadcrumbs %} ... my changes ... {% endblock %}

then Django goes into an infinite recursion when trying to load my override, because the “extends” tag tries to load the override rather than the original template.

An obvious way would be to copy & paste the entire source template, but this is exactly the thing I’m trying to avoid. So how can I modify a template without copying and pasting all of it into my project?

  • 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-13T09:50:23+00:00Added an answer on May 13, 2026 at 9:50 am

    The complete details on overriding the admin templates are here: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates.

    If you’re only trying to change the template for a single app, you can simply save it as app_label/change_list.html. If you’re trying to change it for a single model, you can save it as app_label/model_as_underscores/change_list.html.

    If you’re trying to change it for all your stuff, you can create a new template with a different name, and set its name as the change_list_template attribute on all your ModelAdmin subclasses. (On ModelAdmin, you can do the same thing with change_form_template, delete_confirmation_template, and object_history_template. On an AdminSite, you can override the index_template and login_template attributes in the same way.)

    Both of these methods will allow you to extend from the original admin templates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say this page www.example.com/mypage returns some html that I want to parse in
For Example: Let's say that I want to return a view that displays a
For example let us say that we want to save a list of URLs
A simple example: Let's say I have one alias being sourced somewhere as: alias
There is an example (let us say in a file named mybatch.bat ): @echo
Is there any way to get PDF document text language? Example: Let's say I
Let's say for example I wanted to echo You are using Windows! or You
Please indulge my simplistic example: Let's say I have 1 million pages on my
Maybe a silly question but here goes anyway. Example: Let's say I have one
What's the best way to thread work (methods) in c#? For example: Let's say

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.