From e0efdb4f35d61e1200d3182b1ef3dead813441c8 Mon Sep 17 00:00:00 2001 From: Ed Crewe Date: Sat, 26 Oct 2019 15:54:18 +0100 Subject: [PATCH] update urls in README --- README.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index 4ee2dcc..91c1099 100644 --- a/README.txt +++ b/README.txt @@ -44,10 +44,10 @@ Usually this is easiest done in the urls.py of your core application ... from cookieless.decorators import no_cookies ->>> urlpatterns = patterns('', -... url(r'^view_function/(\d{1,6})$', no_cookies(view_function)), -... url(r'^view_class/(\d{1,6})$', no_cookies(ViewClass.as_view())), -...) +>>> urlpatterns = [ +... path('somewhere/index', no_cookies(views.home)), +... re_path(r'^somewhere/page/(\d{1,6})$', no_cookies(views.page)), +...] Note that if a number of browser tabs are open on to a site with cookieless, they will each maintain a completely separate session, since without cookies the session is tied to the session posted from the pages accessed, not the client as a whole.