Skip to content

majidmc2/django-rest-framework-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

About

DJANGO-REST-FRAMEWORK TUTORIAL

This project content of some notes about Django-Rest-Framework with examples


Usage

Requirements

pip3 install --upgrade pip

pip3 install jupyter

Run

At first you should clone the repository

git clone https://github.com/majidmc2/django-rest-framework-tutorial

Then run jupyter

cd django-rest-framework-tutorial

jupyter-notebook

You redirect to your default browser and you should open the netebooks directory after that you can open each lassen.


Topics

  • lassen-1
    • What is Python?
    • Why Python?
    • Function
    • Local and global Var
    • Built in Function
    • Conditional Structures
    • Python Collections
    • Classes/Objects
    • Import
    • JSON
    • RegEx
  • lassen-2
    • How to install virtualenv
    • Install Django and Django REST framework into the virtualenv
    • Settings
    • Function Based Views
    • Router
    • Send data to server
    • django browsable api
    • HTTP Status Codes
  • lassen-3
    • What is a model?
    • SQL
    • Relationships
    • Making queries
    • Performing raw SQL queries
    • Exercise
  • lassen-4
    • @api_view and Models
    • Serializers
    • ModelViewSet
  • lassen-5
    • Authentication
      • TokenAuthentication
      • SessionAuthentication
    • Filter Backends & Pagination
    • Create Endpoint User
    • Permissions
    • Disable DEBUG mod
    • Connect Django to MySQL