Migrate users.urls from url() to re_path()

This commit is contained in:
Danielle McLean 2018-05-04 12:42:48 +10:00
parent 2fc4a5e23e
commit 1b660d8af5
Signed by untrusted user: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -1,8 +1,8 @@
from django.conf.urls import url
from django.urls import re_path
from .views import libravatar
app_name = 'users'
urlpatterns = (
url('^avatar/(?P<hash>[a-z0-9]+)$', libravatar, name='libravatar'),
re_path('^avatar/(?P<hash>[a-z0-9]+)$', libravatar, name='libravatar'),
)