mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 07:27:09 +00:00
comments
This commit is contained in:
8
urls.py
8
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
|
||||
|
||||
Reference in New Issue
Block a user