Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
012bf6a3
Commit
012bf6a3
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add social auth conf to production settings
Former-commit-id: ac63332794160a52c928b7551a24217dd519d9b9
parent
e7f056d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippisite/hub16_settings.py
+19
-0
19 additions, 0 deletions
ippisite/ippisite/hub16_settings.py
with
19 additions
and
0 deletions
ippisite/ippisite/hub16_settings.py
+
19
−
0
View file @
012bf6a3
...
...
@@ -46,6 +46,13 @@ INSTALLED_APPS = [
'
ippidb
'
,
'
formtools
'
,
'
debug_toolbar
'
,
'
mod_wsgi.server
'
,
'
django.contrib.sites
'
,
'
allauth
'
,
'
allauth.account
'
,
'
allauth.socialaccount
'
,
'
allauth.socialaccount.providers.github
'
,
'
allauth.socialaccount.providers.orcid
'
,
'
mod_wsgi.server
'
]
...
...
@@ -140,3 +147,15 @@ GRAPH_MODELS = {
'
all_applications
'
:
True
,
'
group_models
'
:
True
,
}
# myproject/settings.py
AUTHENTICATION_BACKENDS
=
(
"
django.contrib.auth.backends.ModelBackend
"
,
"
allauth.account.auth_backends.AuthenticationBackend
"
,
)
SITE_ID
=
1
LOGIN_REDIRECT_URL
=
'
/
'
LOGOUT_REDIRECT_URL
=
'
/
'
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment