Hello Django Developers list I'm sending on this thread to hopefully open a discussion about *Adding the ability for a multi custom theme in Django's Admin*.
*What do i mean ?* We can have many multiple Django admin sites <https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#multiple-admin-sites-in-the-same-urlconf>, where each site can have its registered models, apps, admin views, etc.. ok? However, Those different admin sites are limited to one interface/html structure, located at `tempates/admin`. A change in one admin site base.html will affect the other admin sites. *Proposal:* A way to direct each AdminSite to the template path where it should find the templates. *Example:* Add a setting called ADMIN_DEFAULT_THEME = 'admin' Add an attribute to AdminSite called theme which default to ADMIN_DEFAULT_THEME, and basically this setting controls which directory this admin site look for templates. So whenever a path like 'admin/some_file_name.html' occurs, it is to be replaced with something like f'{admin_theme}/some_file_name.html' This will take effect in extends statements, AdminSite templates loading(index/app index / etc) and ModelAdmin template loading (change form/list/delete etc..) *Use case:* You want to be able to use the django admin default theme along with something like django-jazzmin <https://github.com/farridav/django-jazzmin> along with Grappelli <https://grappelliproject.com/> or django-suit <https://pypi.org/project/django-suit/>. *Final thoughts:* * I see no real reason why we should not implement this. * I sits well with the multi admin site idea. If we can have several different sites then they should be able to look different . * This open the door for admin theme to be something plug and play which in my opinion have some interesting nice outcomes Finally, Thank you for your time reading this and i hope you support it or engage in a discussion. Looking forward for your replies .. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/f96a4b22-3ce3-4031-a97a-d3b406d788ccn%40googlegroups.com.