I'd also recommend working through "The Django Book"
http://www.djangobook.com/en/2.0/

This section entitled "Using Sessions in Views", from this URL:
http://www.djangobook.com/en/2.0/chapter14/

seems relevant to what you are trying to do.

On Feb 10, 7:00 am, Keyan <keyan...@gmail.com> wrote:
> I am new to django!! working in windows. I have created a login page
> and validating in view.py file
> code wil go like this
>       for x in log:
>         if u_name ==x[1]:
>               return render_to_response('index.html',{"log":log})
>         else:
>               return render_to_response('wrong.html')
>
> here if the u_name doesnt match means it wil go to else part and call
> wrong.html file.  but its not working for me..  it showing following
> error
>
>                                   "didn't return an HttpResponse
> object"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to