Re: Configuration of "level" in LOGGING

2022-04-04 Thread Jason Johns
How would this work with secret stores like hashicorp vault, aws secrets manager? Or even via environment variables? This approach would work if you define the logging level in your configuration, but not so friendly for other approaches. On Monday, April 4, 2022 at 9:26:02 PM UTC-4 Dan Swain

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 { 'le

Re: Ticket #21289 - Login rate limiting

2022-04-04 Thread Hrushikesh Vaidya
Hi all, I'm trying to work on adding rate-limiting to core as part of this year's GSoC, and I'd like to work on this ticket as a part of the project. I'm aiming to write an API for rate-limiting (which is a lot like django-ratelimit merged into core), which we could use to add some default rate-

Re: Revisiting MSSQL and Azure SQL Support in Django

2022-04-04 Thread אורי
Hi All, After reading your comments, I think Django should keep supporting only open source databases, as well as other staff (operating systems, packages) and drop support for the closed source databases, operating systems etc. It seems to me that some of you think supporting Oracle was a mistake

Re: Revisiting MSSQL and Azure SQL Support in Django

2022-04-04 Thread Gert Burger
As a commercial user of all the builltin DB backends and the MSSQL backend (both the MS fork and its parent), I tend to agree more with Florian's arguments. Our experience with the MS MSSQL and Oracle DB backends in supporting our enterprise customers have been difficult at best, in comparison to

Re: Feature requests for queryset

2022-04-04 Thread Jason Johns
filter takes in a decomposed dict of keys and values, ie filter_dict = { "id_in": SomeIterable } qs = SomeModel.objects.filter(**filter_dict) from your example, IGNORE_FILTER does not return an iterable, so how is that to work with a SQL query? Seems to me that ths might be an x-y problem

Feature requests for queryset

2022-04-04 Thread Laurent Lyaudet
Hello, Below are 2 feature requests : - the first would just be to add a constant object for ignoring some filters, to avoid lists of "if ... is not None: q = q.filter(...)" like I must do right now, q = q.filter(id_in=[1,2,3]) filters something q = q.filter(id_in=IGNORE_FILTER) does not filter -