From e32b53c89b5a3c5063466b9fb53327cc1e097205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Hovm=C3=B6ller?= Date: Mon, 13 May 2024 11:21:14 +0200 Subject: [PATCH] Use modern path mapping syntax --- docs/source/usage.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 57c8ef4..0f8c2f8 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -53,11 +53,11 @@ your URLconf. For example: from django.conf.urls import patterns, url, include from myproject.feeds import EventFeed - urlpatterns = patterns('', + urlpatterns = [ # ... - (r'^latest/feed.ics$', EventFeed()), + path('latest/feed.ics', EventFeed()), # ... - ) + ] Example how recurrences are built using the django-recurrence_ package: