Hi,
For anyone interested or stuck as i was this is what i did in my view and it started working,its not working optimamly as i wanted it to but its a working progress but its atleast saving to the database
import json
@csrf_exempt
def saveFormDesign(request):
data=request.body
t=json.loads(data)
ClientData.objects.create(name='demo',fields=t)
return HttpResponse(t)
Regards,
-- For anyone interested or stuck as i was this is what i did in my view and it started working,its not working optimamly as i wanted it to but its a working progress but its atleast saving to the database
import json
@csrf_exempt
def saveFormDesign(request):
data=request.body
t=json.loads(data)
ClientData.objects.create(name='demo',fields=t)
return HttpResponse(t)
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1408467f-867f-40e1-9254-ab37a8ca2e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment