django2.2: migrate url to re_path

This commit is contained in:
2019-10-05 18:14:41 +02:00
parent 7be9077fce
commit be855c6c90
19 changed files with 387 additions and 342 deletions

View File

@ -22,12 +22,12 @@
#
#
from django.conf.urls import url
from django.urls import re_path
from subscription.views import *
urlpatterns = [
# Subscription views
url(r"^$", NewSubscription.as_view(), name="subscription"),
url(r"stats", SubscriptionsStatsView.as_view(), name="stats"),
re_path(r"^$", NewSubscription.as_view(), name="subscription"),
re_path(r"stats", SubscriptionsStatsView.as_view(), name="stats"),
]