Skip to content

freemad/teachingmaterial-django-rest-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Rest Framework Tutorial

The famous Snippet tutorial code of the Django Rest Framework with some modifications for better integration with django standards.

Each step is committed separately and and fully-worked so one can pave through each commit and monitor the changes for better understanding.

Instruction

1- Add a virtual environment with any tools suitable for you:

- Virtualenv
- VirtualenvWrapper
- Poetry

2- Install requirements

pip3 install -r requirement.txt

Note

If you use "poetry" you can add dependencies via: poetry add command

3- Implement the migrations into the database

./manage.py migrate

4- Add a superuser to the server:

./manage.py createsuperuser

5- Run the server:

./manage.py runserver

6- Navigate through codes and APIs:

Navigate to the GIT repository commits and in the browser go to url:

http://localhost:8000/

About

A modified Django Rest Framework tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages