Skip to content
Snippets Groups Projects
Commit f31d7503 authored by barni2000's avatar barni2000
Browse files

Update README.md

parent aff1a98e
No related branches found
No related tags found
No related merge requests found
...@@ -7,17 +7,18 @@ Django Application for AuthSCH ...@@ -7,17 +7,18 @@ Django Application for AuthSCH
Quick start Quick start
----------- -----------
````python
1. Add "authsch" to your INSTALLED_APPS setting like this:: 1. Add "authsch" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ INSTALLED_APPS = [
... ...
'authsch', 'authsch',
] ]
````
2. settings.py 2. settings.py
... ````python
SOCIAL_AUTH_URL_NAMESPACE = 'social' SOCIAL_AUTH_URL_NAMESPACE = 'social'
AUTHENTICATION_BACKENDS = [ AUTHENTICATION_BACKENDS = [
...@@ -25,11 +26,10 @@ AUTHENTICATION_BACKENDS = [ ...@@ -25,11 +26,10 @@ AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend', 'django.contrib.auth.backends.ModelBackend',
] ]
SOCIAL_AUTH_AUTHSCH_KEY = ... SOCIAL_AUTH_AUTHSCH_KEY = "key"
SOCIAL_AUTH_AUTHSCH_SECRET = ... SOCIAL_AUTH_AUTHSCH_SECRET = "secret"
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/' SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'
LOGIN_URL = "login/authsch/" LOGIN_URL = "login/authsch/"
````
...
3. Run `python manage.py migrate` to create the authsch models. 3. Run `python manage.py migrate` to create the authsch models.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment