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(โ€ฆ)โ€™