React Data Flow RDF

DRF == Django Rest Framework

  • Models - basically python classes that tells you what the structure of the data and maps to tables in the database.

DRY (don’t repeat yourself) Permissions You also need to create migrations?

  • Serializers - convert complex data types (like Django models) to JSON or other formats… Essential for converting request and response data to and from native python type.

  • Views - Views handle the logic for the API.

We use viewsets which simplifies code by providing common operations like list, create, retrieve, update, and delete.

You get a queryset from using the .object.all(). .object is Django’s default manager for intereacting with the database.

  • Routers - expose the endpoint as a url. you need a viewset to register the router. *

app model serializer views URLS

Redux Frontend Dispatch selector

Make an API

Django Simple History

Database Database

Django shell

Lets you open up a shell that lets you query your stuff going on with django