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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:18:18+00:00 2026-05-17T00:18:18+00:00

I have an application in Django with a routine which would be available only

  • 0

I have an application in Django with a routine which would be available only to the admin. What I want to do is add a button to perform the routine in this application’s section of the admin app.

Am I supposed to make a template for it, and if that’s the case, how do I add a html template for an app in the admin. Or maybe there’s a command to simply add a button?

  • 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-17T00:18:18+00:00Added an answer on May 17, 2026 at 12:18 am

    Messing with the admin forms can be complicated but i’ve commonly found that adding links, buttons, or extra info is easy and helpful. (Like a list of links to related objects witout making an inline, esp for things that are more viewed than edited).

    From Django docs

    Because of the modular design of the admin templates, it is usually
    neither necessary nor advisable to
    replace an entire template. It is
    almost always better to override only
    the section of the template which you
    need to change.

    This will add a list over the top of the form.

    Place in templates/admin/[your_app]/[template_to_override]:

    {% extends "admin/change_form.html" %}
    
    {% block form_top %}
    
    {% for item in original.items %}
      {{ item }}
    {% endfor %}
    
    {% endblock %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a django application xxx which does a number of things. I also
In my django application I have different content across the site. Now I would
I'm building an application in django and I'd like to have a reports section.
I have a Django application. I have .json fixture files containing test data, with
I have a django application that i serve using gunicorn. I do that by
I have a Django application that have a lot of images items that have
I have the following view in my django application def ViewSale( request ): salecur
I have a set of URL's in my django application that trigger certain actions
I just migrated my django application from sqlite3 to mysql 5.1.41. I have a
I'm using Django 1.1 on Google App Engine through use_library . No Django GAE

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.