Skip to content

Commit

Permalink
Update README to use Django 1.10 style of hooking up functional views
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobh committed Sep 2, 2016
1 parent 1ca0b80 commit aa53402
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ redirected to their last visited page.
How to use?
===========

#. Import the views module in your root urls.py

.. code-block:: python
import django_saml2_auth.views
#. Override the default login page in the root urls.py file, by adding these
lines **BEFORE** any `urlpatterns`:

Expand All @@ -90,10 +96,10 @@ How to use?
url(r'^saml2_auth/', include('django_saml2_auth.urls')),
# The following line will replace the default user login with SAML2 (optional)
url(r'^accounts/login/$', 'django_saml2_auth.views.signin'),
url(r'^accounts/login/$', django_saml2_auth.views.signin),
# The following line will replace the admin login with SAML2 (optional)
url(r'^admin/login/$', 'django_saml2_auth.views.signin'),
url(r'^admin/login/$', django_saml2_auth.views.signin),
#. Add 'django_saml2_auth' to INSTALLED_APPS

Expand Down

0 comments on commit aa53402

Please sign in to comment.