How to Deep Link into Django Admin from a Template
Nathan Clement · September 8, 2026 · 3 min read
A simple solution to a surprisingly poorly documented problem
Photo by Fahrul Azmi on Unsplash
Django Admin is an extremely powerful tool. It enables full CRUD control for configured Models across all your applications with very little effort.
As such, I found it very surprising how difficult it was to find documentation about how to deep link to Admin Views from a Django Template.
Documentation is spread across several different pages, and multiple StackOverflow questions. The most useful portions are here:
- Django Docs on Reversing Admin URLS
- StackOverflow Question about how to send parameters to Django url Template
- StackOverflow Question about how to get the Django Admin url for an object
Without further ado, here is the solution, finally unified into a single article where it belongs!
Quick Summary
In the table below, I have taken the Django documentation and added an example of what to pass into the template given an app named and a model called
Deep Link to your own Application (all options)
Lets imagine that I have a Django application called and it has a model:
View list of Companies
Changelist view in Django Admin
Add a Company
Add view in Django Admin
View Change History for a Company
Change History view in Django Admin
Delete a Company
Delete view in Django Admin
Change a Company
Change view in Django Admin
Deep Link to Default Applications (using Auth as an example)
Viewing a list of Users in the Django Auth Application:
Summary
Here is a complete example of everything together:
Output of the template code above in a browser is pictured below:
Originally published on 2023-01-25 on Medium.