diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |