Import Markup from markupsafe
This commit is contained in:
parent
9e336a7bc9
commit
fa8c683439
2 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ from urllib.parse import urlparse
|
|||
|
||||
import mistune
|
||||
from django.conf import settings
|
||||
from jinja2 import Markup
|
||||
from markupsafe import Markup
|
||||
from lxml import html
|
||||
from lxml.etree import ParserError, XMLSyntaxError
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import re
|
||||
|
||||
from jinja2 import Markup, nodes
|
||||
from jinja2 import nodes
|
||||
from jinja2.ext import Extension
|
||||
from markupsafe import Markup
|
||||
|
||||
|
||||
class SpacelessExtension(Extension):
|
||||
|
|
Loading…
Reference in a new issue