#32289: Multi Theme support for the Admin
-----------------------------------------+------------------------
               Reporter:  Ramez Issac    |          Owner:  nobody
                   Type:  New feature    |         Status:  new
              Component:  contrib.admin  |        Version:  3.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 **Issue**:
 There is no way to mix between several admin themes.
 Say i installed a 3rd party admin theme and i want to use it along with
 the default (or with another 3rd party theme)

 While we can have many different admin sites, all admin sites currently
 must share the same theme.
 Because the admin assumes the template directory 'admin' all the time.


 **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 looks 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..)

 If accepted then i'd love to start working on it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32289>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.e4683356c04014036c301ab3a607e5ee%40djangoproject.com.

Reply via email to