Open aaugustin opened 9 years ago
@aaugustin Can we close this with #711 being merged?
Not really.
This ticket is about taking advantage of the new debug APIs that have been committed recently and will be available in Django 1.9.
Example solution:
return render_to_string('debug_toolbar/base.html', context)
change to something like this:
return render_to_string('debug_toolbar/base.html', context, using=self.config['TEMPLATE_ENGINE_ALIAS'])
and pull request for this https://github.com/django-debug-toolbar/django-debug-toolbar/pull/713
@nex2hex The goal of this issue is to allow the toolbar to report complete debug information about templates regardless of which engine was used to render them.
The using
keyword argument is only intended for low-level control of rendering engines. It would be harmful to use it here because it would prevent Django's automatic template selection mechanism to kick in.
It would be nice to provide something in the templates panel when another engine is used in Django ≥ 1.8. Current efforts by @prestontimmons to formalize the loader API may help.