g works, until I added
> > line 10 - "@staff_member_required"):
>
> You're probably using Python 2.3, which doesn't support the @ syntax
> for decorators.
>
> Instead of using that, below the view function add this line:
>
> aud_request = staff_member_required(aud_request)
&g
On 2/23/07, sansmojo <[EMAIL PROTECTED]> wrote:
> Here's my views/admin.py (note that everything works, until I added
> line 10 - "@staff_member_required"):
You're probably using Python 2.3, which doesn't support the @ syntax
for decorators.
Instead of using that, below
I'm following along with Chapter 18 of the book as well as a tutorial
on newforms, but I'm getting hung up on one thing the book says to
use. I import the staff_member_required decorator, and I put
"@staff_member_required" just before my view method definition (see
code below),
3 matches
Mail list logo