Repository: vittoriozamboni/django-groups-manager (language: python)

Issue:
fix: handling deprecation of django.conf.urls.url

* fix: handling deprecation of django.conf.urls.url with django.urls.re_path
* chore: added .venv to gitignore

related to #59  


Discussion / hints:

Fix patch:
diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst
index 4696932..5bb1667 100644
--- a/docs/source/changelog.rst
+++ b/docs/source/changelog.rst
@@ -1,11 +1,15 @@
 Changelog
 =========
+- 22-01-29 (1.2.0):
+    - Support Django 4: uses correct url parser function `re_path` (see issue #60, thank you Lukas Hennies!)
+    - Updated intro.rst, fixed wrong example (see issue #57, thank you Areski Belaid!)
+
 - 21-04-11 (1.1.0):
     - Removed `awesome-slugify` from requirements. It needs to be installed separately due to his licence (see issue #54, thank you BoPeng!);
     - Added a new settings to customize the slugify functions for username and other cases.
 
 - 20-06-17 (1.0.2):
-    - Changed jsonfield2 to jsonfield in requirements
+    - Changed jsonfield2 to jsonfield in requirements and tests (see issue #49, thank you ioio!);
 
 - 20-03-07 (1.0.1):
     - Amended Django 3 deprecations
diff --git a/groups_manager/__init__.py b/groups_manager/__init__.py
index 9cff1bc..ee65984 100644
--- a/groups_manager/__init__.py
+++ b/groups_manager/__init__.py
@@ -1,1 +1,1 @@
-VERSION = '1.1.0'
+VERSION = '1.2.0'


Test patch:
diff --git a/testproject/testproject/urls.py b/testproject/testproject/urls.py
index 2d94830..211e6c4 100644
--- a/testproject/testproject/urls.py
+++ b/testproject/testproject/urls.py
@@ -1,13 +1,12 @@
-import django
 from django.conf import settings
-from django.conf.urls import include, url
+from django.urls import include, re_path
 from django.conf.urls.static import static
 from django.contrib import admin
 
 from testproject import views
 
 urlpatterns = [
-    url(r'^admin/', admin.site.urls),
-    url(r'^$', views.TestView.as_view(), name='home'),
-    url(r'^groups-manager/', include('groups_manager.urls', namespace='groups_manager')),
+    re_path(r'^admin/', admin.site.urls),
+    re_path(r'^$', views.TestView.as_view(), name='home'),
+    re_path(r'^groups-manager/', include('groups_manager.urls', namespace='groups_manager')),
 ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)