Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Russell Keith-Magee
Ok - I think everyone needs to settle down a little bit. I've just re-read the whole thread. Here's my summary: The OP didn't post a question - they posted a source of information that they thought might be helpful for someone coming from a Struts background. Marcin gave a one line response. Th

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
Y On Thu, Apr 26, 2012 at 12:29, Tom Evans wrote: > On Thu, Apr 26, 2012 at 12:20 PM, Marcin Tustin > wrote: > > On Thu, Apr 26, 2012 at 09:34, Tom Evans > wrote: > >> > >> What one framework may call something may not be what another > >> framework does, and users moving between frameworks do

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Tom Evans
On Thu, Apr 26, 2012 at 12:20 PM, Marcin Tustin wrote: > On Thu, Apr 26, 2012 at 09:34, Tom Evans wrote: >> >> What one framework may call something may not be what another >> framework does, and users moving between frameworks don't need to be >> belittled just because they do not know how that

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
On Thu, Apr 26, 2012 at 09:34, Tom Evans wrote: > > What one framework may call something may not be what another > framework does, and users moving between frameworks don't need to be > belittled just because they do not know how that framework names > things. > > If you are saying that I have be

Re: why django document does not specify how to use non-global middleware

2012-04-26 Thread Tom Evans
On Wed, Apr 25, 2012 at 5:50 PM, Marcin Tustin wrote: > Just because you used to do it in Struts, it does not mean that it is the > best, or even a good, way to do it in django. > That's not true, certainly not in this case. A commonly used feature in Django is the ability to add view decorators

Re: why django document does not specify how to use non-global middleware

2012-04-25 Thread Marcin Tustin
Just because you used to do it in Struts, it does not mean that it is the best, or even a good, way to do it in django. On Wed, Apr 25, 2012 at 17:26, DanYun Liu wrote: > I am new to django, before django I used struts2 to build web application. > It is common that we need to apply some middlewa