Python PEP for more convenient HTML generation

2021-06-11 Thread guettli
Hi, Since I use the html-fragments-over-the-wire pattern (htmx) I create small function based views returning small html fragments. Up to now I use format_html(). I am tired of passing in the variables like `foo=foo, bar=bar` into format_html(). I created a Python PEP to introduce a new way. T

Re: Python PEP for more convenient HTML generation

2021-06-11 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Thomas As I understand there wouldn't be much required by Django to support this - just one function. So if it came to Python, I think we'd like to see a working snippet, maybe in a third party package, before merging support. In terms of the PEP, - there are already "too many" ways to templat

Re: Python PEP for more convenient HTML generation

2021-06-11 Thread guettli
Adam Johnson schrieb am Freitag, 11. Juni 2021 um 10:17:02 UTC+2: > Hi Thomas > > As I understand there wouldn't be much required by Django to support this > - just one function. So if it came to Python, I think we'd like to see a > working snippet, maybe in a third party package, before mergi

Removal of USE_L10N setting

2021-06-11 Thread Claude Paroz
Hi, I eventually took some time to try implementing an idea I had since some time: remove the USE_L10N setting. The draft PR is here: https://github.com/django/django/pull/14519 My motivations are: - one less setting - simplication of the code and logic regarding USE_18N/USE_L10N/USE_TZ set

Add feature request for django permissions.

2021-06-11 Thread wael muhammed
could this want feature request. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group a