Port webmention.urls to use path()

This commit is contained in:
Danielle McLean 2018-05-04 12:34:52 +10:00
parent 0239f7e031
commit 30634f9ec2
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -1,8 +1,8 @@
from django.conf.urls import url
from django.urls import path
from . import views
app_name = 'webmention'
urlpatterns = (
url('^$', views.accept, name='accept'),
url('^s/(?P<mention_id>\d+)$', views.status, name='status')
path('', views.accept, name='accept'),
path('s/<int:mention_id>', views.status, name='status')
)