Skip to content
Django/DRF rest application example.
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
django_rest_example
logs
media
requirements
static
templates/email
.gitignore
README.md
manage.py

README.md

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>",
    },
)
You can’t perform that action at this time.