Re: How to work with views like classes

2011-03-17 Thread Isaac XxX
Thanks for your responses. The problem here is that there are some "dirty" solutions to this problem, but i'm sure there is a good way to proceed with it. This issue should be really simple to resolve if django make use of classes instead of functions for views, and then, template would be benefi

Re: How to work with views like classes

2011-03-17 Thread Daniel Roseman
On Thursday, March 17, 2011 11:35:55 AM UTC, chubz wrote: > > What I've found as a solution, though I don't know how much it is > recommended as a programming practice is to have your variable defined in a > "custom" request context and then use that request context instead of the > default one.

Re: How to work with views like classes

2011-03-17 Thread Borislav Petrović
What I've found as a solution, though I don't know how much it is recommended as a programming practice is to have your variable defined in a "custom" request context and then use that request context instead of the default one. You create you request context and based on the default context then

How to work with views like classes

2011-03-16 Thread Isaac XxX
Hi folks, Currently i'm getting trouble with a single feature in django. When i've some inheritance in templates, like the following TemplateA TemplateB inherits A TemplateC inherits B TemplateD inherits B If I need to define something depending on provided data in TemplateA or TemplateB, then