json

  • Using ReactJS for the front-end, so it is my understanding I have to use Django REST Framework to create an API, then have ReactJS take the JSON to render for the front-end.
  • Stack Overflow works best with JavaScript enabled
  • You wouldn’t use Django forms at all – Turtle 5 hours ago
  • If so, I am talking about how user input from the ReactJS front-end is passed into Django models for updating and adding entries in the database.
  • Join the Stack Overflow Community

Been reading and watching quite a bit about integration ReactJS into a Django project. I get the basic concepts of data flowing from Django in the form of JSON via Django REST Framework.

@ReactAtSO: Django Forms and Authentication with Front-end Framework (AngularJS/ReactJS)

Been reading and watching quite a bit about integration ReactJS into a Django project. I get the basic concepts of data flowing from Django in the form of JSON via Django REST Framework.

Where tutorials seem to end though is how data flows in the reverse direction and what role, if any do Django forms play? I am thinking input elements are rendered back into JSON and then sent back through Django REST Framework in the form of

, etc. to update models.

However, when it comes to using user input against Django’s built in auth views, I am a bit lost. Does anyone have experience with this that cares to explain?

Could you please clarify what your project layout is. For example, are you creating a REST API with Django and calling that API from the React project? – Turtle 7 hours ago

Yes, that is correct. Using ReactJS for the front-end, so it is my understanding I have to use Django REST Framework to create an API, then have ReactJS take the JSON to render for the front-end. I haven’t got that far yet, but it just got me wondering how interaction on the front-end gets passed back into Django. – ishraqiyun77 6 hours ago

. You wouldn’t use Django forms at all – Turtle 5 hours ago

Your are talking about rendering data from Django into ReactJS, correct? If so, I am talking about how user input from the ReactJS front-end is passed into Django models for updating and adding entries in the database. – ishraqiyun77 5 hours ago

json