[Answer]-Two different templates for django admin

1👍

You need to create different instances of django.contrib.admin.sites.AdminSite

Docs

Example usage,

# admin.py
from django.contrib.admin.sites import AdminSite

new_admin = AdminSite(name='My New Admin Panel')

new_admin.index_template = "new_admin/index.html"


# urls.py
from myproject.admin import new_admin


(r'^new_admin/(*.)', new_admin.urls)

Leave a comment