We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e489c commit bda5263Copy full SHA for bda5263
project_home_tags/templatetags/project_home.py
@@ -1,10 +1,15 @@
1
from functools import wraps
2
3
from django import template
4
+from django import VERSION as DJANGO_VERSION
5
from django.conf import settings
-from django.urls import reverse
6
from django.utils.html import format_html
7
8
+if DJANGO_VERSION < (1, 10):
9
+ from django.core.urlresolvers import reverse
10
+else:
11
+ from django.urls import reverse
12
+
13
14
register = template.Library()
15
home_namespace = getattr(settings, 'PROJECT_HOME_NAMESPACE', None)
0 commit comments