Re: calling the view function in the other view function

2012-12-01 Thread Chris Cogdon
On Friday, November 30, 2012 9:22:08 PM UTC-8, Satinderpal Singh wrote: > > On Sat, Dec 1, 2012 at 4:45 AM, Chris Cogdon > > 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 solu

Re: calling the view function in the other view function

2012-11-30 Thread Satinderpal Singh
On Sat, Dec 1, 2012 at 4:45 AM, Chris Cogdon 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

Re: calling the view function in the other view function

2012-11-30 Thread Chris Cogdon
It's generally very messy for one "view" function to call another. 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. Also, I highly recommend using the "render" shortcut, which would