We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
plain urls
plain urls list
1 parent c2da4bf commit 6146fcbCopy full SHA for 6146fcb
plain/plain/cli/README.md
@@ -52,7 +52,7 @@ __all__ = [
52
]
53
```
54
55
-### `plain urls`
+### `plain urls list`
56
57
List all the URL patterns in your app.
58
plain/plain/cli/urls.py
@@ -3,9 +3,15 @@
3
import click
4
5
6
-@click.command()
+@click.group()
7
+def urls():
8
+ """URL related commands"""
9
+ pass
10
+
11
12
+@urls.command("list")
13
@click.option("--flat", is_flag=True, help="List all URLs in a flat list")
-def urls(flat):
14
+def list_urls(flat):
15
"""Print all URL patterns under settings.URLS_ROUTER"""
16
from plain.runtime import settings
17
from plain.urls import URLResolver, get_resolver
0 commit comments