After installing Cookiecutter Django i saw the tilde (~) symbol in regex and don't know the meaning for url purposes.
It's related to a regular expression or only a way to declare paths?
./users/urls.py:
urlpatterns = [
...
url(
regex=r'^~redirect/$',
...
url(
regex=r'^~update/$',
...
]
~
does not have any special meaning in a regular expression. The url pattern matches the path /~redirect/
literally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With