Django API without DRF

This is a API project made with Django, and without Django REST framework.

This project was done with:

How to run project?

  • Clone this repository.
  • Create virtualenv with Python 3.
  • Active the virtualenv.
  • Install dependences.
  • Run the migrations.

git clone
cd django-api-without-drf
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python contrib/
python migrate
python createsuperuser --username="admin" --email=""


/api/v1/videos/                 backend.core.views.video_list   core:video_list
/api/v1/videos/<int:pk>/        backend.core.views.video_detail core:video_detail
/api/v1/videos/<int:pk>/delete/ backend.core.views.video_delete core:video_delete
/api/v1/videos/<int:pk>/update/ backend.core.views.video_update core:video_update
/api/v1/videos/create/          backend.core.views.video_create core:video_create
/api/v2/videos/                 backend.core.views.videos       core:videos
/api/v2/videos/<int:pk>/        core:video

Examples with httpie

pip install httpie

Adiciona vídeo

http POST http://localhost:8000/api/v2/videos/ \
title="Dica #49 - DRF: Autenticação via JWT com djoser - Django REST framework" \
link="" \

http POST http://localhost:8000/api/v2/videos/ \
title="Dica #50 - DRF: Django CORS headers + Login com VueJS" \
link="" \

Lista vídeos

http http://localhost:8000/api/v2/videos/

Visualiza um vídeo

http http://localhost:8000/api/v2/videos/1/

Edita um vídeo

http POST http://localhost:8000/api/v2/videos/1/ \
title="Dica #49 - DRF: Autenticação via JWT com djoser"

Deleta um vídeo

http DELETE http://localhost:8000/api/v2/videos/1/



View Github