Browse Source

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

pull/1/head
Danielle McLean 4 years ago
parent
commit
1b660d8af5
Signed by: 00dani GPG Key ID: 8EB789DDF3ABD240
  1. 4
      users/urls.py

4
users/urls.py

@ -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'),
)

Loading…
Cancel
Save