Django + Ckeditor

49 views
Skip to first unread message

David Pineda

unread,
Jan 2, 2016, 4:13:52 PM1/2/16
to django...@googlegroups.com
Hello folks! Happy new year!

I have a question about ckeditor on django. I configured ok and use ckeditor field on my project model. But when i show the content on a template view, the images only show the [img] tag and the path to file. I think it can be a filter but on the official site there are nothing about how to show on a view the field (only how to enable on the edit form).
So i ask you about this, how to do the correct configuration to show the field with images (not qith tag img)

Thanks!

--
David A. Pineda Osorio
Ingeniero Civil Electricista
Universidad de Chile





whycrying

unread,
Jan 3, 2016, 8:43:58 AM1/3/16
to django...@googlegroups.com
Hi, David,

You can close the auto-escaping behavior like this ::

    {% autoescape off %}
      {{ content }}
    {% endautoescape %}

ref: https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#autoescape


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAn3imxDoToELcxo%2B12pQQ0eX2d0ye%2Bj25Jv%3DqTa1WcoYq17aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

Dheerendra Rathor

unread,
Jan 5, 2016, 10:20:02 AM1/5/16
to django...@googlegroups.com
Adding to whycrying's method, you can use {{ content|safe }} to escape things as well. 

Reply all
Reply to author
Forward
0 new messages