The first steps guide for django-impersonate recommends to use in urls.py:
url(r'^impersonate/', include('impersonate.urls')),
In my Django 4.2 project, after getting a warning, I instead used:
path(r"impersonate/", include("impersonate.urls")),
I double-checked the django docs and path() seems to be the recomended mode.
The documentation could be updated (section Use, bullet point 3)
What version are you using? This change was made about 5 years ago. See:
https://hg.code.netlandish.com/~petersanchez/django-impersonate/rev/219c5d296015
Most recent version is 1.9.5
My bad. The title clearly says
documentation- I just missed it. Thanks for the catch! This has been done here: