On Friday, January 21, 2011 12:08:57 PM UTC, km wrote: > > Hi all, > > I am trying to display a parent django template (base.html) with a view > function called "base" like this: > > def base(request): > return render_to_response('base.html') > > The base.html gets displayed in the browser(firefox 3.x) but the child html > pages, holding content details, which extend base.html does not get pulled > automatically. > both base.html and child html are in the same dir. > I am using django 1.2.4 on ubuntu 10.10 > what could be the problem? > > pls let me know. > regards, > KM >
You're doing it the wrong way round. Child templates extend parent templates, so you need to render the child. -- 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.