Re: Authenticate every def in views.py

2010-12-18 Thread Piotr Zalewa
I remember using a middleware with an exception list. (more than a year ago) On 10-12-18 05:35, Łukasz Rekucki wrote: On 18 December 2010 13:48, James Bennett wrote: On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: I've added a decorator to *each* def in views.py to require authentication.

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 13:48, James Bennett wrote: > On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: >> I've added a decorator to *each* def in views.py to require >> authentication. Is there a simpler way that allows me to apply >> authentication automatically to every def in the file? > > 1. Wr

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 12:24, Jonas H. wrote: > On 12/18/2010 10:30 AM, Łukasz Rekucki wrote: >> >> On 18 December 2010 03:43, suckerfish  wrote: >>> >>> Hi guys >>> >>> I've added a decorator to *each* def in views.py to require >>> authentication. Is there a simpler way that allows me to apply >>>

Re: Authenticate every def in views.py

2010-12-18 Thread James Bennett
On Fri, Dec 17, 2010 at 8:43 PM, suckerfish wrote: > I've added a decorator to *each* def in views.py to require > authentication. Is there a simpler way that allows me to apply > authentication automatically to every def in the file? 1. Write a middleware which will force authentication on all y

Re: Authenticate every def in views.py

2010-12-18 Thread Jonas H.
On 12/18/2010 10:30 AM, Łukasz Rekucki wrote: On 18 December 2010 03:43, suckerfish wrote: Hi guys I've added a decorator to *each* def in views.py to require authentication. Is there a simpler way that allows me to apply authentication automatically to every def in the file? Depends on your

Re: Authenticate every def in views.py

2010-12-18 Thread Łukasz Rekucki
On 18 December 2010 03:43, suckerfish wrote: > Hi guys > > I've added a decorator to *each* def in views.py to require > authentication. Is there a simpler way that allows me to apply > authentication automatically to every def in the file? Depends on your code editor ? -- Łukasz Rekucki -- Y

Authenticate every def in views.py

2010-12-17 Thread suckerfish
Hi guys I've added a decorator to *each* def in views.py to require authentication. Is there a simpler way that allows me to apply authentication automatically to every def in the file? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to