Skip to content

Commit

Permalink
Merge pull request #349 from davidjb/patch-1
Browse files Browse the repository at this point in the history
Update urls install config for Django 2.0+
  • Loading branch information
akatsoulas committed Jul 16, 2020
2 parents f2b0a01 + a6b5295 commit a5c9fd2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,16 @@ Add routing to urls.py

Next, edit your ``urls.py`` and add the following:


.. code-block:: python
urlpatterns = patterns(
from django.urls import path
urlpatterns = [
# ...
url(r'^oidc/', include('mozilla_django_oidc.urls')),
path('oidc/', include('mozilla_django_oidc.urls')),
# ...
)
]
Enable login and logout functionality in templates
Expand Down

0 comments on commit a5c9fd2

Please sign in to comment.