Skip to content

Commit 2c8103f

Browse files
committed
Fixed outdated import statement.
The Problem An outdated import statements was causing an error in emojis.py. Due the the try-catch phrase on lines 28-37 of utils.py a misleading error message suggests that the markdown verison is out of date. The Solution The error is in fact caused by an outdated import statement. See lines 14 and 15 of the updated django source code file at the link below. https://github.com/django/django/blob/aa5fd84f53f09338d01a3cfd9fa6ab08e418fe00/django/contrib/staticfiles/templatetags/staticfiles.py
1 parent 8fef06d commit 2c8103f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

martor/extensions/emoji.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from ..settings import (
33
MARTOR_MARKDOWN_BASE_EMOJI_URL,
44
MARTOR_MARKDOWN_BASE_EMOJI_USE_STATIC)
5-
from django.contrib.staticfiles.templatetags.staticfiles import static
5+
from django.templatetags import static
66

77
"""
88
>>> import markdown

0 commit comments

Comments
 (0)