# How to create custom template in django admin.

**URL:** <https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722>\
**Category:** The Admin\
**Created:** [June 19, 2023, 5:31pm UTC](https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722 "2023-06-19T17:31:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![desphixs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/desphixs/32/6411_2.png) [@desphixs](https://forum.djangoproject.com/u/desphixs)\
**Post date:** [June 19, 2023, 5:31pm UTC](https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722/1 "2023-06-19T17:31:27Z")

</div>

First of all, I am curious to know if it is possible to create something similar to a Products or Sales Overview in **DJANGO ADMIN**.

Below is a sample picture

 ![Screenshot (11)](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/6/683aa84ecce3f16997db632078c6655af20a3229.png)

If so, I’m guessing I’d have to start overwriting the default template, etc., but how do I go about this?

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 19, 2023, 5:49pm UTC](https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722/2 "2023-06-19T17:49:57Z")

</div>

You _might_ be able to do something like that, but that’s not really the purpose of the admin to provide those types of facilities. In general terms, you’d want to create your own views and templates for that.

See the first two paragraphs in the docs at [The Django admin site | Django documentation | Django](https://docs.djangoproject.com/en/4.2/ref/contrib/admin/#module-django.contrib.admin)

---

<div class="post-metadata">

**Author:** ![desphixs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/desphixs/32/6411_2.png) [@desphixs](https://forum.djangoproject.com/u/desphixs)\
**Post date:** [June 19, 2023, 5:53pm UTC](https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722/3 "2023-06-19T17:53:23Z")

</div>

Thanks for your response.

So that means I have to create a totally separate view and template to calculate and display the overview; and is there not a way to can add the custom template in the Django admin. Instead of the superuser visiting another page to view the shop’s overview, can’t it still be in the same admin interface?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 19, 2023, 5:56pm UTC](https://forum.djangoproject.com/t/how-to-create-custom-template-in-django-admin/21722/4 "2023-06-19T17:56:57Z")

</div>

> [@desphixs](#):
>
> I have to create a totally separate view and template …

You’d be doing that anyway, because the Django admin doesn’t provide views and templates for that.

> [@desphixs](#):
>
> Instead of the superuser visiting another page to view the shop’s overview,

Either way, you’re still going to be defining URLs and creating links to pages.

You’re not saving any effort by trying to integrate this into the admin.
