On Sat, Dec 1, 2012 at 4:45 AM, Chris Cogdon <ch...@cogdon.org> wrote: > It's generally very messy for one "view" function to call another. Then what is the fun of making the function, if it is not reusable. > > Better solution is to factorise out the common parts into a third function, > then make sure each of your two "view" functions have the required > render_to_response.
What will i do if i have a large number of views having the common part. > Also, I highly recommend using the "render" shortcut, which would turn your > more complex calls into this: Thanks, for the kind advise. > return render ( request, 'report/report_base.html', {'Head':Head,} ) > > -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- 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.