Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.21 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.21 KB

leukeleu-drf-tus

A tus library for Django REST Framework.

Quickstart

Install drf-tus:

pip install leukeleu-drf-tus

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'rest_framework_tus',
    ...
)

Add the middleware to MIDDLEWARE:

MIDDLEWARE = (
    ...
    'rest_framework_tus.middleware.TusMiddleware',
    ...
)

Add drf-tus's URL patterns:

urlpatterns = [
    ...
    path('', include('rest_framework_tus.urls', namespace='rest_framework_tus')),
    ...
]

Features

This library implements the following TUS API v1.0.0 protocols:

Running Tests

Does the code actually work?

docker compose exec python make coveragetest