jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
837 stars 148 forks source link

Django 1.10 support #186

Closed rtpg closed 6 years ago

rtpg commented 7 years ago

This tries to bring Django support up to 1.10 without changing behavior in older versions of Django.

The one functionality change here is that TEMPLATE_DEBUG is no longer respected (we instead look directly at DEBUG in this branch):

So how does the Django Template Language do it? The render nodes are able to recover the template through the context, get the engine, and find the debug setting there. Unfortunately, a lot of tests operate outside the normal rendering flow (where we render nodes without the proper template context), so trying to do the same caused a lot of test breakage.

Would love it if there was a proper solution to this, I'm not confident enough in my understanding of the template stack to make the test changes required while ensuring the right things are still being tested.