Re: Contact form doesn't see user as logged in

2011-01-04 Thread Catalyst
Thank you, this worked. I appreciate the fast response Łukasz. On Jan 3, 11:38 pm, Łukasz Rekucki wrote: > On 4 January 2011 02:27, Catalyst wrote: > > >  I am having trouble with a contact form on my site. Whenever I hit > > the page, it doesn't see

Re: Contact form doesn't see user as logged in

2011-01-03 Thread Kenneth Gonsalves
On Tue, 2011-01-04 at 08:38 +0100, Łukasz Rekucki wrote: > How do you check that user is logged in ? If it's via request.user, > then it doesn't work 'cause you > aren't passing the request object to your template's context. The > recomended way to do this is using RequestContext: > > from

Re: Contact form doesn't see user as logged in

2011-01-03 Thread Łukasz Rekucki
On 4 January 2011 02:27, Catalyst wrote: >  I am having trouble with a contact form on my site. Whenever I hit > the page, it doesn't see that the user is logged in. Here's how my > code looks. How do you check that user is logged in ? If it's via request.user, then it

Contact form doesn't see user as logged in

2011-01-03 Thread Catalyst
I am having trouble with a contact form on my site. Whenever I hit the page, it doesn't see that the user is logged in. Here's how my code looks. #forms.py from django import forms from django.utils.translation import ungettext, ugettext_lazy as _ class ContactForm(forms.Form):