• There was an “or” instead of an “and” (fixed now), but nothing that could generate that error.

  • That what i was looking for.
    I tried your code but did not work

  • I think it might be conflicting with the “never_cache” decorator…

  • Yeah.. many thanks.. The problem was with “never_cache” decorator..
    But i do not why we are disabling cache here.

    Regards
    Praveen

  • Thanks it works..
    I did not know before i thought both login = never_cache(login) and @never_cache works in same fashion.
    Really great post and it could give me more logic regarding decorator.
    Regards
    Praveen

  • Read the python manual on decorators 🙂

  • Still i am getting the same error.. here is my login view [I am using python2.6]

  • Try it like:

Advertisment ad adsense adlogger