Re: Feature Request: New parameter for render_to_string() to render part of a template using a selector

2023-06-12 Thread Dan Swain
Carlton Gibson has addressed my feature request: https://github.com/carltongibson/django-template-partials On Friday, July 15, 2022 at 8:21:52 PM UTC-4 Dan Swain wrote: > With the growing uptake of technologies like HTMX, I would like to see an > additional parameter added to render_to_

Feature Request: New parameter for render_to_string() to render part of a template using a selector

2022-07-15 Thread Dan Swain
With the growing uptake of technologies like HTMX, I would like to see an additional parameter added to render_to_string(). In my rewritten definition of render_to_string() below (taken from the docs), I have named the parameter “part”. In rendering portions of a template for responses to ajax

Configuration of "level" in LOGGING

2022-04-04 Thread Dan Swain
The current Django LOGGING setup requires a string for the "level". This is not intuitive since the Python logging module defines logging.DEBUG, logging.INFO, etc. I think one should be able to configure the logging level using { 'level': logging.DEBUG } rather than being required to use {