duck.backend.django.urls

Proxy module for Django which is essential for configuring urlpatterns registered with Duck to be accessible within Django.

Module Contents

Functions

get_correct_urlpatterns

Returns all urlpatterns registered within Duck converted to urlpatterns understood by Django.

get_duck_urlpatterns

Returns all urlpatterns registered within Duck including blueprint urlpatterns.

Data

urlpatterns

API

exception duck.backend.django.urls.DjangoURLConflict(message, **kws)

Bases: duck.exceptions.all.RouteError

Raised when a URL pattern that is said to be only known to Django has been defined within Duck.

Initialization

Stores the error message in the message attribute.

Parameters:
  • message – The error message.

  • **kws – Additional keyword arguments.

duck.backend.django.urls.get_correct_urlpatterns() List

Returns all urlpatterns registered within Duck converted to urlpatterns understood by Django.

duck.backend.django.urls.get_duck_urlpatterns() List

Returns all urlpatterns registered within Duck including blueprint urlpatterns.

duck.backend.django.urls.urlpatterns

‘get_correct_urlpatterns(…)’