Add django-4-compat.patch (Closes: #1013475).
Thomas Goirand
1 year, 10 months ago
|
0 |
python-django-pyscss (2.0.2-11) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Add django-4-compat.patch (Closes: #1013475).
|
|
3 |
|
|
4 |
-- Thomas Goirand <zigo@debian.org> Mon, 27 Jun 2022 13:14:51 +0200
|
|
5 |
|
0 | 6 |
python-django-pyscss (2.0.2-10) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
[ Ondřej Nový ]
|
|
0 |
Description: Django 4.x compat
|
|
1 |
The django.conf.urls API has been removed from Djang 4.0.
|
|
2 |
Author: Thomas Goirand <zigo@debian.org>
|
|
3 |
Forwarded: no
|
|
4 |
Last-Update: 2022-06-27
|
|
5 |
|
|
6 |
Index: python-django-pyscss/testproject/testproject/urls.py
|
|
7 |
===================================================================
|
|
8 |
--- python-django-pyscss.orig/testproject/testproject/urls.py
|
|
9 |
+++ python-django-pyscss/testproject/testproject/urls.py
|
|
10 |
@@ -1,4 +1,5 @@
|
|
11 |
-from django.conf.urls import include, url
|
|
12 |
+from django.conf.urls import include
|
|
13 |
+from django.urls import re_path
|
|
14 |
|
|
15 |
from django.contrib import admin
|
|
16 |
admin.autodiscover()
|
|
17 |
@@ -8,5 +9,5 @@ urlpatterns = [
|
|
18 |
# url(r'^$', 'testproject.views.home', name='home'),
|
|
19 |
# url(r'^blog/', include('blog.urls')),
|
|
20 |
|
|
21 |
- url(r'^admin/', admin.site.urls),
|
|
22 |
+ re_path(r'^admin/', admin.site.urls),
|
|
23 |
]
|
7 | 7 |
remove-broken-test-in-django-2.0.patch
|
8 | 8 |
do-not-use-six-from-django.patch
|
9 | 9 |
rename-staticfiles-into-static.patch
|
|
10 |
django-4-compat.patch
|