rest_framework.reverse

Provide urlresolver functions that return fully qualified URLs or view names

Module Contents

preserve_builtin_query_params(url, request=None)

Given an incoming request, and an outgoing URL representation, append the value of any built-in query parameters.

reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra)

If versioning is being used then we pass any reverse calls through to the versioning scheme instance, so that the resulting URL can be modified if needed.

_reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra)

Same as django.urls.reverse, but optionally takes a request and returns a fully qualified URL, using the request to get the base URL.

reverse_lazy