Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion django_markdown/templatetags/django_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import posixpath

from django import template
from django.core.urlresolvers import reverse

try: # django <= 1.6
from django.core.urlresolvers import reverse
except ImportError: # from django 1.7 to django 2.0 (and more)
from django.urls import reverse

from ..utils import markdown as _markdown, settings, simplejson, mark_safe

Expand Down
6 changes: 5 additions & 1 deletion django_markdown/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
""" Markdown utils. """
from django.core.urlresolvers import reverse
try: # django <= 1.6
from django.core.urlresolvers import reverse
except ImportError: # from django 1.7 to django 2.0 (and more)
from django.urls import reverse

import markdown as markdown_module
from django.utils.encoding import force_text
from django.utils.safestring import mark_safe
Expand Down