#5344: template loading doesn't work for extends (eg admin/base.html) [& 
tutorial
needs updating?]
-------------------------+--------------------------------------------------
   Reporter:  anonymous  |                Owner:  adrian         
     Status:  closed     |            Component:  Template system
    Version:  SVN        |           Resolution:  worksforme     
   Keywords:  extends    |                Stage:  Unreviewed     
  Has_patch:  0          |           Needs_docs:  0              
Needs_tests:  0          |   Needs_better_patch:  0              
-------------------------+--------------------------------------------------
Comment (by anonymous):

 Thanks, I've figured out what was going on now. The base.html file WAS
 being loaded (where I'd deleted the Documentation link), but I was still
 seeing the link appear on non-home pages (which confused me).
 
 The problem was that the definition of the 'userlinks' block (which
 includes Documentation) was *repeated* in change_form.html,
 change_list.html, delete_confirmation. and object_history.html! Therefore,
 my change in base.html was being overridden by these forms :(
 
 I'd recommend that these other templates are re-factored to remove the
 duplication so that simple people like me have an easier time of
 cutomisation, and only have to change things in one place rather than 5!

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5344#comment:2>
Django Code <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