Skip to content

Commit

Permalink
Merge pull request #229 from oussjarrousse/main
Browse files Browse the repository at this point in the history
Update README.md - replaced url() with re_path()
  • Loading branch information
mostafa authored Dec 3, 2023
2 parents c8df048 + f7a0074 commit b62970e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ python setup.py install
```python
# These are the SAML2 related URLs. You can change "^saml2_auth/" regex to
# any path you want, like "^sso/", "^sso_auth/", "^sso_login/", etc. (required)
url(r'^sso/', include('django_saml2_auth.urls')),
re_path(r'^sso/', include('django_saml2_auth.urls')),

# The following line will replace the default user login with SAML2 (optional)
# If you want to specific the after-login-redirect-URL, use parameter "?next=/the/path/you/want"
# with this view.
url(r'^accounts/login/$', django_saml2_auth.views.signin),
re_path(r'^accounts/login/$', django_saml2_auth.views.signin),

# The following line will replace the admin login with SAML2 (optional)
# If you want to specific the after-login-redirect-URL, use parameter "?next=/the/path/you/want"
# with this view.
url(r'^admin/login/$', django_saml2_auth.views.signin),
re_path(r'^admin/login/$', django_saml2_auth.views.signin),
```

3. Add `'django_saml2_auth'` to `INSTALLED_APPS` in your django `settings.py`:
Expand Down

0 comments on commit b62970e

Please sign in to comment.