Revised question:
In my dbms, I'm storing the literal <<<firefox-image>>>
, I confirmed in Navicat and Mysql CLI that its <<<firefox-image>>>
. When I use the Python shell and try to grab the same article entry, the outer <>
's get converted to <
and <
, respectively.
Snippet of me testing:
>>> entry = Entry.objects.filter( pub_date__lte = datetime.datetime.now() ).filter(featured=1)[0].excerpt_html
>>> entry
u'<p>\u0432\u0430\u043d.\n<<<firefox-image>>></p>'
How can I get it to use the literal <
and >
?
Original question:
In my template I did this:
{{ entry.excerpt_html|safe|render_uploads }}
it complained at the render_uploads
because I didnt load adminfiles, so I prepended
{% load adminfiles_tags %}
The error went away, but in my article excerpt it still renders <<<firefox-image>>>
as <<firefox-image>>
.