ojii/django-sekizai — Issue #9: How to render CMS page without render_block output
Author: philomat
Created: 2012-02-08 04:58:48+00:00
State: open

Suppose you are pulling a page with via Xhr, and since render_block cannot be within an {% if request.is_ajax %}, and Django CMS cannot render the page using another template if ajax, and the render_block css and render_block js screw up the output and make it unnecessarily large:

How would you return the page without those parts if is_ajax?