mirror of https://github.com/zulip/zulip.git
urls: Migrate zproject urls to use modern django patterns.
This migrations use of url() to path() or re_path(). In this commit, we only migration regular expressions to path where the translation is trivial: * URLs with no parameters in them * URLs with only integer parameters in them * Strings where there regular expression just checked for `/`s path; strings, which can have variable validation in the URLs that need by-hand auditing, we leave for future commits that are easier to review and think about the individual changes. Modified by tabbott to convert back to `re_path` various URLs with strings that had been converted to use `path()` with string validation to simplify review. Fixes #14770.
This commit is contained in:
parent
a3c475f137
commit
fec77381ee
829
zproject/urls.py
829
zproject/urls.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue