Skip to content
Snippets Groups Projects
Commit a0e28f03 authored by Thomas Goirand's avatar Thomas Goirand
Browse files

Add django-4-compat.patch (Closes: #1013475).

parent ac4d10c6
No related branches found
No related tags found
No related merge requests found
python-django-pyscss (2.0.2-11) unstable; urgency=medium
* Add django-4-compat.patch (Closes: #1013475).
-- Thomas Goirand <zigo@debian.org> Mon, 27 Jun 2022 13:14:51 +0200
python-django-pyscss (2.0.2-10) unstable; urgency=medium
[ Ondřej Nový ]
......
Description: Django 4.x compat
The django.conf.urls API has been removed from Djang 4.0.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2022-06-27
Index: python-django-pyscss/testproject/testproject/urls.py
===================================================================
--- python-django-pyscss.orig/testproject/testproject/urls.py
+++ python-django-pyscss/testproject/testproject/urls.py
@@ -1,4 +1,5 @@
-from django.conf.urls import include, url
+from django.conf.urls import include
+from django.urls import re_path
from django.contrib import admin
admin.autodiscover()
@@ -8,5 +9,5 @@ urlpatterns = [
# url(r'^$', 'testproject.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
- url(r'^admin/', admin.site.urls),
+ re_path(r'^admin/', admin.site.urls),
]
......@@ -8,3 +8,4 @@ Fix_MIDDLEWARE_and_INSTALLED_APPS_definitions.patch
remove-broken-test-in-django-2.0.patch
do-not-use-six-from-django.patch
rename-staticfiles-into-static.patch
django-4-compat.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment