Migrate users.urls from url() to re_path()
This commit is contained in:
parent
2fc4a5e23e
commit
1b660d8af5
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
from django.conf.urls import url
|
from django.urls import re_path
|
||||||
|
|
||||||
from .views import libravatar
|
from .views import libravatar
|
||||||
|
|
||||||
app_name = 'users'
|
app_name = 'users'
|
||||||
urlpatterns = (
|
urlpatterns = (
|
||||||
url('^avatar/(?P<hash>[a-z0-9]+)$', libravatar, name='libravatar'),
|
re_path('^avatar/(?P<hash>[a-z0-9]+)$', libravatar, name='libravatar'),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue