[BangPypers] Writing extendable django views

Amit Sethi amit.pureenergy at gmail.com
Thu Jul 7 10:45:16 CEST 2011


> I am not sure whether i understood your Q right. The context is just a dict
> - why not keep adding to it?
Yes I understand that however I was basically I was asking if there is
a standard followed or should there be a standard followed to do
something like that more
especially if you are writing a slightly generic app.



> OR did you mean, changing the signature of views.py so that its extendable
> and can take in variable number of args?
> IF the latter, then prefer to use "*args, **kwargs" as the params across
> *all* your views right from day-1.

That is a good idea . I think I will use that.




-- 
A-M-I-T S|S


More information about the BangPypers mailing list