Re: "Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
Thank you :) On Friday, March 7, 2014 12:13:26 AM UTC+8, Felipe Coelho wrote: > > 2014-03-06 11:45 GMT-03:00 Jack Yan >: > >> in the tutorial and section "Authenticating Users": >> https://docs.djangoproject.com/en/1.6/topics/auth/default/ >

"Authenticating Users" where should I put the code?

2014-03-06 Thread Jack Yan
in the tutorial and section "Authenticating Users": https://docs.djangoproject.com/en/1.6/topics/auth/default/ where can I put code: from django.contrib.auth import authenticateuser = authenticate(username='john', password='secret')if user is not None: # the password verified for the user