Port webmention.urls to use path()

pull/1/head
Danielle McLean 5 years ago
parent 0239f7e031
commit 30634f9ec2
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240
  1. 6
      webmention/urls.py

@ -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…
Cancel
Save