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
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
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
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):
4 matches
Mail list logo