Re: help needed in #33586

2022-09-19 Thread charettes
Hello Bhuvnesh, I tried to provide some guidance on the ticket . I know you are eager on getting help but please allow for a few non-weekend days before elevating your request for support as most of us are volunteers here. Cheers, Simon

help needed in #33586

2022-09-19 Thread Bhuvnesh Sharma
Hey , can anyone help me in issue #33586 ? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, se

Feature Request: Customisation of constraint error messages in forms

2022-09-19 Thread David Sanders
Hi folks, Please note this is partly an extension of some discussion in PR 16054 asking whether single-field unique or check constraints should raise field errors as opposed to non-field errors . As part of Django's new con

RE: Optional URL parameters in django.urls.path

2022-09-19 Thread Matthew Pava
I wonder if maybe you should look at the APPEND_SLASH setting. https://docs.djangoproject.com/en/4.1/ref/settings/#append-slash From: django-developers@googlegroups.com On Behalf Of Meiyer Sent: Monday, September 19, 2022 8:59 AM To: Django developers (Contributions to Django itself) Subject:

Re: Optional URL parameters in django.urls.path

2022-09-19 Thread Meiyer
> > > One approach is to route two patterns (one with the parameter and one > without) to the same URL. Some duplication but (perhaps) easier to read at > a glance than either an optional `?` operator. > I thought about that, but it won't work if I want both cases to be named similarly (via th

Re: Optional URL parameters in django.urls.path

2022-09-19 Thread Carlton Gibson
One approach is to route two patterns (one with the parameter and one without) to the same URL. Some duplication but (perhaps) easier to read at a glance than either an optional `?` operator. Given that — and the alternative re_path() approach being available — unless there was a particularly sim

Optional URL parameters in django.urls.path

2022-09-19 Thread Meiyer
Hi, I feel there is a use case that the `path()` function does not address and thus requires to switch over to `re_path()` which immediately adds a lot of additional and error-prone syntax. Often there is a need to capture a URL parameter which can be optional into the view’s kwargs. In terms