Django RESTful Framework
What is MVT?
What is API?
Request
Data notation
Why not HTML?
Why JSON
What we need to do
JSON ... and then?

Reasons for separating Javascript & framework
Reinstalling Django
Using Faker
Install faker
Create dummy data
RESTful API
RESTful
Rules
API related URLs
Django REST Framework (DRF)
Serialize (Serialization)
Serialization
: Object(language, database) -> String (JSON)
CREATE

Pretty error output with raise_exception
raise_exception

yasg
Install DRF yasg
Loading dummy data as JSON
Put dummy.json in fixtures folder
dummy.json in fixtures folderPut dummy.json into DB with loaddata
loaddataDump data from DB with dumpdata
dumpdataCreate JSON file from dumped data with dumpdata
dumpdataMake it pretty with indenting
Last updated