#30515: Document django.shortcuts.resolve_url. -------------------------------------+------------------------------------- Reporter: Sage Abdullah | Owner: nobody Type: | Status: closed Cleanup/optimization | Component: Documentation | Version: dev Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Adam Johnson): I've seen another use case, which lead me to create duplicate ticket #34650 because I'm a fool who doesn't check for old ones. The new use case is htmx redirect responses, which django-htmx provides wrappers for like [https://django- htmx.readthedocs.io/en/latest/http.html#django_htmx.http.HttpResponseClientRedirect HttpResponseClientRedirect]. These are a different kind of redirect response but their usage can still benefit from the convenience of `resolve_url()`, as I found in a client project. Also see these GitHub code search results: https://github.com/search?q=NOT+%28path%3A**%2F__init__.py+OR+path%3A**shortcuts.py%29+%22django.shortcuts%22+resolve_url&type=code&ref=advsearch They reveal usage in 4.1k files including popular packages Wagtail, and django-allauth. -- Ticket URL: <https://code.djangoproject.com/ticket/30515#comment:7> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/01070188ba79ee68-ca5ffbdd-000f-4178-b169-477392d92ecf-000000%40eu-central-1.amazonses.com.