Skip to content

Commit 48caf10

Browse files
committed
Fix some urls docs
1 parent f55ac7d commit 48caf10

File tree

2 files changed

+10
-49
lines changed

2 files changed

+10
-49
lines changed

plain-admin/plain/admin/impersonate/README.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

plain-oauth/plain/oauth/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@ INSTALLED_PACKAGES = [
3232
]
3333
```
3434

35-
In your `urls.py`, include `plain.oauth.urls`:
35+
In your `urls.py`, include the [`OAuthRouter`](urls.py#OAuthRouter):
3636

3737
```python
38-
urlpatterns = [
39-
path("oauth/", include("plain.oauth.urls")),
40-
...
41-
]
38+
from plain.oauth.urls import OAuthRouter
39+
from plain.urls import Router, include
40+
41+
class AppRouter(Router):
42+
namespace = ""
43+
urls = [
44+
include("oauth/", OAuthRouter),
45+
# ...
46+
]
4247
```
4348

4449
Then run migrations:

0 commit comments

Comments
 (0)