From 1b660d8af553826bd0d204bb41f6d5cbcfb5b7b5 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 4 May 2018 12:42:48 +1000 Subject: [PATCH] Migrate users.urls from url() to re_path() --- users/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/urls.py b/users/urls.py index 141b45e..b790e3a 100644 --- a/users/urls.py +++ b/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[a-z0-9]+)$', libravatar, name='libravatar'), + re_path('^avatar/(?P[a-z0-9]+)$', libravatar, name='libravatar'), )