mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
django2.2: migrate url to re_path
This commit is contained in:
@ -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"),
|
||||
]
|
||||
|
Reference in New Issue
Block a user