Hi!

I am new to DRF. I have a Django Form that is being rendered using the 
Django templates. Now I am trying to switch my form to DRF+React (so Django 
just serves as a backend API and React renders the form). I have put some 
more details of my exact situation 
here: http://stackoverflow.com/questions/42297614/django-forms-with-reactjs

I was surprised to see very limited response on SO above because I thought 
rendering forms on React using Django at the backend would be a common 
usecase. I did get one good response above but I am now realising it needs 
more work (it still does not send out the form fields and the repr out in 
the GET request for React to render the form, so I figured I have to use 
return JsonResponse(repr(serializer), safe = False) )

My question is the following: Are there any good examples online of form 
fields/data being sent out through DRF for a framework like React to render 
the form (for creating new data + updating existing data). I found some 
GitHub repos but none that does forms. DRF tutorial (which is pretty good, 
by the way) talks about fetching and updating existing data but not much 
about creating new data or passing just the form fields over so that the 
form can be rendered on the other side. 

Would love to get any references/help here.

thanks!
Anupam

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to