Hi Laxmikant,

Do you mean this statement (I can't find any other that refers to csrf) in 
settings

   'django.middleware.csrf.CsrfViewMiddleware',

I commented it, but it still gives me error 61 - Connection refused.

Thanks,
Cheng Hong


On Monday, October 1, 2012 10:36:43 PM UTC-7, Laxmikant Gurnalkar wrote:
>
> Comment the csrf from settings. It doesnt work when you want.I use session 
> and own credentials to do that 
> And just write a simple view to send mail. 
> This will work without csrf or any of credentials & etc.
>
> *Cheers* 
>
> Laxmikant
>
> On Tue, Oct 2, 2012 at 6:15 AM, Cheng <chb...@googlemail.com <javascript:>
> > wrote:
>
>> Hi,
>>
>> I am new to django.
>>
>> I am following The Definitive Guide to Django SECOND EDITION by Adrian 
>> Holovaty and Jacob Kaplan -Moss and I cannot get the contact form to send 
>> mail. First the eg did not work at all until I added the @csrf-exempt 
>> decorator. Keeps getting Error 61 Connection Failure after that. 
>>
>> Would be grateful if someone can help.
>>
>> Thanks,
>> Cheng
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-users/-/r40DN0e3ybAJ.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> * 
>
>  GlxGuru
>
> *
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Jd23CoR6TtEJ.
To post to this group, send email to django-users@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