On Friday, May 13, 2011 4:15:59 AM UTC+1, robinne wrote: > > How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged in, for example: > "Welcome John", instead of "login here", on every page. But if I call > my child page "/Home" (for example) and it extends "base.html", how do > I render the dynamic content within base.html? Thanks.
The base template is rendered along with the child template, as long as the child uses the {% extends %} tag. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.