Re: 500 message with POST

2011-05-03 Thread BobX
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

Re: 500 message with POST

2011-05-02 Thread Ian Clelland
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

Re: 500 message with POST

2011-05-02 Thread А . Р .
> @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

500 message with POST

2011-05-02 Thread Robert Cross
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