Skip to content

leukeleu/leukeleu-drf-tus

Repository files navigation

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