Thanking you sir .
I paste {% csrf_token %} after form tag in my contact_form.html
and it worked!!
thank you lot
On Thu, Aug 15, 2013 at 6:50 PM, Jonathan Baker <
jonathandavidba...@gmail.com> wrote:
> The bullet points in the error message provide some possible solutions.
>
The bullet points in the error message provide some possible solutions. I'd
start by adding {% csrf_token %} after your opening tag in the
template. Also of note though is that you've imported 'csrf' and
'RequestContext' in your view but you don't appear to be using them
anywhere (at least not in
code in views.py
=
from django.http import HttpResponseRedirect
from django.core.mail import send_mail
from django.core.context_processors import csrf
from django.template import RequestContext
def contact1(request):
errors = []
if request.method ==
3 matches
Mail list logo