Example of CRUD in Django with REST FRAMEWORK
Go to file
Andros Fenollosa 01f86a6b51 Update field
2021-07-15 16:24:20 +02:00
app/library Update field 2021-07-15 16:24:20 +02:00
project Update settings.py 2021-07-15 15:49:47 +02:00
scripts Add fake data 2021-07-14 16:46:34 +02:00
tests Add fake data 2021-07-14 16:46:34 +02:00
.gitignore First commit 2021-07-05 15:56:53 +02:00
manage.py Fix name project and Add Heroku deploy 2021-07-14 17:17:52 +02:00
Procfile Add release-tasks.sh 2021-07-14 17:31:26 +02:00
pytest.ini Translate english 2021-07-14 16:19:03 +02:00
README.md Fix postgres 2021-07-15 16:00:37 +02:00
release-tasks.sh Update field 2021-07-15 16:24:20 +02:00
requirements.txt Add heroku 2021-07-14 17:12:41 +02:00

Example of CRUD in Django with REST FRAMEWORK

All endpoints contain your test.

Live Demo

https://example-of-crud-in-django-jrf.herokuapp.com/

Get list

Get Detail

Create

Update

Delete

Install

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 manage.py migrate

Run

python3 manage.py runserver

Fake data

python3 manage.py runscript create_books

Test

pytest