Invalid template name in ‘extends’ tag: ”. Got this from the ‘template’ variable.
Posted by Martin Brochhaus | Filed under Uncategorized
When writing a django-application that should be hooked into a django-cms page you might stumble upon this error message:
TemplateSyntaxError at /bewerben/
Invalid template name in 'extends' tag: ''. Got this from the 'template' variable.
In order to fix this you need to pass your context to the template in your view-method:
return render_to_response(
'yourtemplate.html',
{'form': form,},
context_instance=RequestContext(request),
)
Tags: django, django-cms, python







