Port webmention.urls to use path()
This commit is contained in:
parent
0239f7e031
commit
30634f9ec2
1 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue