Skip to content

Commit 96383d9

Browse files
wiliamsouzaauvipy
authored andcommitted
Change install doc to include missing imports and splited options
1 parent 06a6159 commit 96383d9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/install.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,22 @@ If you need an OAuth2 provider you'll want to add the following to your urls.py
1919

2020
.. code-block:: python
2121
22+
from django.urls import include, path
23+
2224
urlpatterns = [
2325
...
2426
path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
27+
]
28+
29+
Or using `re_path()`
30+
31+
.. code-block:: python
32+
33+
from django.urls import include, re_path
34+
35+
urlpatterns = [
36+
...
2537
26-
# using re_path
2738
re_path(r'^o/', include('oauth2_provider.urls', namespace='oauth2_provider')),
2839
]
2940

0 commit comments

Comments
 (0)