From 6f2033eee677d2a5195183fe5cdd9f26c7809bfb Mon Sep 17 00:00:00 2001 From: Dmitry Lyalyaev Date: Tue, 21 Dec 2021 11:45:52 +0300 Subject: [PATCH] update urlpatterns to django 3.2 --- htmlmin/tests/pico_django.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htmlmin/tests/pico_django.py b/htmlmin/tests/pico_django.py index ec3fd7c2..0962340d 100644 --- a/htmlmin/tests/pico_django.py +++ b/htmlmin/tests/pico_django.py @@ -10,7 +10,7 @@ https://github.com/readevalprint/mini-django/blob/master/pico_django.py ''' -from django.conf.urls import url +from django.urls import path from django.http import HttpResponse from htmlmin.decorators import minified_response, not_minified_response @@ -40,7 +40,7 @@ def raw(request): urlpatterns = [ - url(r'^min$', minified), - url(r'^raw$', raw), - url(r'^not_min$', not_minified) + path('min', minified), + path('raw', raw), + path('not_min', not_minified) ]