summaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/urls.py1
-rw-r--r--profiles/views.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/profiles/urls.py b/profiles/urls.py
index da8a7d7..b7967fe 100644
--- a/profiles/urls.py
+++ b/profiles/urls.py
@@ -23,6 +23,7 @@ redirect. If you don't use that name, remember to explicitly pass
"""
from django.conf.urls import *
+from django.urls import *
from profiles import views
diff --git a/profiles/views.py b/profiles/views.py
index 327d466..6b79c95 100644
--- a/profiles/views.py
+++ b/profiles/views.py
@@ -5,7 +5,7 @@ Views for creating, editing and viewing site-specific user profiles.
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
-from django.core.urlresolvers import reverse
+from django.urls import reverse, resolve
from django.http import Http404
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404