[Django] #34650: Document django.shortcuts.resolve_url()

1 view
Skip to first unread message

Django

unread,
Jun 12, 2023, 5:25:43 PM6/12/23
to django-...@googlegroups.com
#34650: Document django.shortcuts.resolve_url()
----------------------------------------+------------------------
Reporter: Adam Johnson | Owner: nobody
Type: New feature | Status: new
Component: Utilities | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------
This function does most of the work for the `redirect()` shortcut. It's
been around since a78dd109e6c81c49e90e36e9b793bad67c46c23c (2012-09-08)
and is useful to call on its own when constructing a different kind of
redirect response, such as 303, 307, or [https://django-
htmx.readthedocs.io/en/latest/http.html#django_htmx.http.HttpResponseLocation
an htmx JavaScript redirect].

Documenting `resolve_url()` would make it part of Django's dependable
public API.

--
Ticket URL: <https://code.djangoproject.com/ticket/34650>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 12, 2023, 7:10:00 PM6/12/23
to django-...@googlegroups.com
#34650: Document django.shortcuts.resolve_url()
------------------------------+--------------------------------------

Reporter: Adam Johnson | Owner: nobody
Type: New feature | Status: closed
Component: Utilities | Version: dev
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by David Smith):

* status: new => closed
* resolution: => duplicate


Comment:

This appears to be a duplicate #30515. #33032 was also opened with the
same issue and was closed as a duplicate.

--
Ticket URL: <https://code.djangoproject.com/ticket/34650#comment:1>

Django

unread,
Jun 14, 2023, 11:10:05 AM6/14/23
to django-...@googlegroups.com
#34650: Document django.shortcuts.resolve_url()
------------------------------+--------------------------------------
Reporter: Adam Johnson | Owner: nobody
Type: New feature | Status: closed
Component: Utilities | Version: dev
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------

Comment (by Adam Johnson):

Ah my bad, and I even replied to the original 🙈

--
Ticket URL: <https://code.djangoproject.com/ticket/34650#comment:2>

Reply all
Reply to author
Forward
0 new messages