[Django] #36585: Add `DateConveter` for path resolving

5 views
Skip to first unread message

Django

unread,
Aug 30, 2025, 3:00:48 PMAug 30
to django-...@googlegroups.com
#36585: Add `DateConveter` for path resolving
-------------------------------------+-------------------------------------
Reporter: Y3K | Owner: Y3K
Type: New | Status: assigned
feature |
Component: Core | Version: 5.2
(URLs) | Keywords:
Severity: Normal | url,path,converter,date,isoformat
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
(I searched for `Conveter` on both tickets and feature submissions, didn't
get any meaninful results.)

I believe there is value on having a built in `DateConveter` that follows
ISO8601 format for path.

The [https://docs.djangoproject.com/en/5.2/topics/http/urls/#example code
example] that Django currently has in the docs does not produce ISO
compatible date paths (i.e. month and day are not zero-padded).
--
Ticket URL: <https://code.djangoproject.com/ticket/36585>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 30, 2025, 3:05:22 PMAug 30
to django-...@googlegroups.com
#36585: Add `DateConveter` for path resolving
-------------------------------------+-------------------------------------
Reporter: Y3K | Owner: Y3K
Type: New feature | Status: assigned
Component: Core (URLs) | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage:
url,path,converter,date,isoformat | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by Y3K:

Old description:

> (I searched for `Conveter` on both tickets and feature submissions,
> didn't get any meaninful results.)
>
> I believe there is value on having a built in `DateConveter` that follows
> ISO8601 format for path.
>
> The [https://docs.djangoproject.com/en/5.2/topics/http/urls/#example code
> example] that Django currently has in the docs does not produce ISO
> compatible date paths (i.e. month and day are not zero-padded).

New description:

(I searched for `Converter` on both tickets and feature submissions,
didn't get any meaninful results.)

I believe there is value on having a built in `DateConveter` that follows
ISO8601 format for path.

The [https://docs.djangoproject.com/en/5.2/topics/http/urls/#example code
example] that Django currently has in the docs does not produce ISO
compatible date paths (i.e. month and day are not zero-padded).

--
--
Ticket URL: <https://code.djangoproject.com/ticket/36585#comment:1>
Reply all
Reply to author
Forward
0 new messages