On May 2, 4:14 pm, А. Р. <4d876...@gmail.com> wrote:
> > @csrf_exempt
> > Any ideas what I'm doing wrong?
>
> Try importing csrf_exempt at the top of your views.py:
> from django.views.decorators.csrf import csrf_exempt
Yes, I already did that - just omitted the declaration from the
message to save
On Mon, May 2, 2011 at 7:45 AM, Robert Cross wrote:
> I'm a Django newbie and I'm trying to do some minor tests with POST methods
> (I need an automated/scriptable way to get data into my Django database).
> Using the following code
>
> @csrf_exempt
> def posttest(request):
> z=request.PO
> @csrf_exempt
> Any ideas what I'm doing wrong?
Try importing csrf_exempt at the top of your views.py:
from django.views.decorators.csrf import csrf_exempt
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
I'm a Django newbie and I'm trying to do some minor tests with POST methods
(I need an automated/scriptable way to get data into my Django database).
Using the following code
@csrf_exempt
def posttest(request):
z=request.POST.get('data', 'no data')
html="POST TestData supplied was
4 matches
Mail list logo