#14140: There is no way to override admin templates to the project level
--------------------------------------+-------------------------------------
          Reporter:  jacmkno          |         Owner:  nobody                 
            Status:  new              |     Milestone:  1.3                    
         Component:  Template system  |       Version:  SVN                    
        Resolution:                   |      Keywords:  extends admin templates
             Stage:  Unreviewed       |     Has_patch:  0                      
        Needs_docs:  0                |   Needs_tests:  0                      
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by rico):

 I think every admin template should extend a "base" template.
 This way it would be possible to override templates on the project level
 (and maybe through external apps also).

 As an example, my solution for customizing the admin index:

   * Move the original '''admin/index.html''' template to
 '''django/contrib/admin/templates/admin/base'''
   * Create the '''admin/index.html''' template that extends
 '''admin/base/index.html'''
 {{{
 {# admin/index.html #}
 {% extends "admin/base/index.html" %}

 {# ... customizations here ... #}
 }}}

   * On the project level, '''admin/index.html''' would extend
 '''admin/base/index.html''' and override the one bundled with the admin
 app

 I can take this ticket if this solution is reasonable.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14140#comment:3>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to