Sunday, December 24, 2017

Re: Django foms problems .. please help me

Hi Vijay,

Can you be more specific?
What invalid section do you get?
And what is the data you are using in choice field?

Constantine C.

On Dec 23, 2017, at 2:39 PM, vijaysundeep <> wrote:

Hi Everyone,

I am trying to pass current user  as request.user.

It handles properly in forms and i am getting choice filed with the help of it.

But, when i tried to read the data throough post method. it is going to form invalid section..

Please help me ASAP.
def instancecreate(request):
if request.method=='POST':
print('POST FORM @@@@@@@@@')

if form.is_valid():
images = request.POST['name']
print('you handled post data')
return HttpResponse(images)
print('NOT a Valid Form !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
return render(request, 'url/User/cinstance.html', {'form': form})


return render(request, 'url/User/cinstance.html', {'form': form})

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment