summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 4803171..38bc944 100644
--- a/urls.py
+++ b/urls.py
@@ -96,6 +96,14 @@ NOTE
- The final _edit and CATCHALL also have to use re_path().
+(?P<thing>)
+This strange syntax is not a Django funny, it is standard (but obscure) python.
+It denotes a "Named Capturing Group"
+https://docs.python.org/3/howto/regex.html#non-capturing-and-named-groups
+https://dnmtechs.com/understanding-the-django-regular-expression-p-in-python-3/
+https://www.regular-expressions.info/named.html
+e.g. the regular expression:
+r'^(?P<path>.*)/(?P<slug>[^/]+)_cave_edit/$'
Many of these patterns do not work because troggle spent many years broken and we have
not yet restored all the functions. Some may have never been fully implemented in