On Fri, May 13, 2011 at 5:15 AM, robinne <develo...@computer-shoppe.net>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. > > I think you should consider using template tags mechanism. Either it is already built into your auth/login application (there are some tags included) or you might write your own custom tags. Please refer to documentation at: http://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ . -- 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.