I am trying to get django cms working with pinax but for some reason runserver gives me this: http://dpaste.com/704936/
Towards the end:
....
File "/home/tux/VirtualEnvs/NewAvePinaxBootstrap/lib/python2.7/site-packages/sekizai/templatetags/sekizai_tags.py", line 43, in parse_blocks
self.blocks['nodelist'] = self.parser.parse()
File "/home/tux/VirtualEnvs/NewAvePinaxBootstrap/lib/python2.7/site-packages/django/template/base.py", line 237, in parse
self.invalid_block_tag(token, command, parse_until)
File "/home/tux/VirtualEnvs/NewAvePinaxBootstrap/lib/python2.7/site-packages/django/template/base.py", line 291, in invalid_block_tag
raise self.error(token, "Invalid block tag: '%s'" % command)
django.template.base.TemplateSyntaxError: Invalid block tag: 'endblock'
How is endblock an invalid block tag? When I disable 'cms' from my INSTALLED_APPS, the error goes away. So, I think it's django cms's fault for some reason or is this a more general django question? Does django cms not work with pinax? I followed the tutorial on the django cms docs and made/copied their sample template_1.
I figured it out. The problem was in the template. I was unaware that sekizai tags couldn't work inside block tags. From the sekizai documentation:
The tag must be in the base template. It cannot be used in an included template. The tag must not be placed within a block tag (a template tag with an end tag, for example {% block name %}...{% endblock %}).
For future reference to anyone who may encounter this. This was the offending code:
{% block extra_style %}{% render_block "css" %}{% endblock %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With