Skip to content

devslaw/django_rest_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django_rest_example

Awesome

Django/DRF rest application example with PostgreSQL and RabbitMQ.

Create virtualenv

cd /var/envs && mkvirtualenv --python=/usr/bin/python3 django_rest_example

Install requirements for a project.

cd /var/www/django_rest_example && pip install -r requirements/local.txt

Make migrations and migrate

python manage.py makemigrations
python manage.py migrate

Request example

response = requests.get(
    url="http://127.0.0.1:8000/api/v0/api-key/",
    headers={
        "Api-Key": "<YOUR_API_KEY>",
    },
)

About

Django/DRF rest application example.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 98.7%
  • HTML 1.3%