meshy / django-conman

NOT READY: Work in progress. A content management system for django
BSD 2-Clause "Simplified" License
3 stars 5 forks source link

Render a page properly in page_detail.html #65

Closed LilyFoote closed 7 years ago

LilyFoote commented 9 years ago

Currently viewing a Page just displays its json representation.

meshy commented 9 years ago

The template could be updated to render the content correctly:

{{ page.content.html|safe }}

But that would mean marking the content as safe by default, and I don't think I trust that. One solution would be to use django-bleach instead, but that will be useless if (for whatever reason) one needed to output a script tag from one of the content blocks. Perhaps we could improve django-sirtrevor, or perhaps we will need to go in another direction.

meshy commented 8 years ago

For reference, my new (as yet non-functional) attempt to use Sir Trevor sensibly.

https://github.com/peroshi/django-sirtrevor-field

meshy commented 7 years ago

As the pages module is gone (for the moment, at least), I'm closing this issue.