summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorChris Rose <offline@offby1.net>2026-05-18 10:49:34 -0700
committerJacob Walls <jacobtylerwalls@gmail.com>2026-06-01 15:24:49 -0400
commit9383fae0d55a553be3bda620db87fa9ee8a81478 (patch)
tree7c46277248d4ed0fc38eb2193d95c844fc146726 /docs/ref
parent22d25eff1510eb157be3ef02984869b1309ec15d (diff)
Fixed #28800 -- Added a listurls management command.
Thanks JaeHyuck Sa, Jacob Walls, and Tim McCurrach for reviews. Co-authored-by: Ülgen Sarıkavak <ulgensrkvk@gmail.com>
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index adbd2465a7..fc8de971ec 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -499,6 +499,31 @@ Only support for PostgreSQL is implemented.
If this option is provided, models are also created for database views.
+``listurls``
+------------
+
+.. django-admin:: listurls
+
+.. versionadded:: 6.2
+
+List URL patterns from the project's root :doc:`URLconf </topics/http/urls>`
+with optional filtering by prefixes, inspired by ``show_urls`` from
+``django-extensions``.
+
+.. django-admin-option:: --unsorted, -u
+
+Lists URLs in the original ordering from ``urlpatterns``. The default ordering
+is alphabetical by route.
+
+.. django-admin-option:: --prefix, -p [prefix ...]
+
+Filters URLs by given prefixes.
+
+.. django-admin-option:: --format, -f {tabular,stacked,json}
+
+Specifies the output format. Available values are ``tabular``, ``stacked``, and
+``json``. Default is ``tabular``.
+
``loaddata``
------------