mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor
This commit is contained in:
parent
fa1ea2f701
commit
7fa87edda7
@ -286,11 +286,6 @@ INSTALLED_APPS = [
|
|||||||
'allauth.socialaccount', # Use 'social' providers
|
'allauth.socialaccount', # Use 'social' providers
|
||||||
]
|
]
|
||||||
|
|
||||||
# Load the allauth social backends
|
|
||||||
SOCIAL_BACKENDS = CONFIG.get('social_backends', [])
|
|
||||||
for app in SOCIAL_BACKENDS:
|
|
||||||
INSTALLED_APPS.append(app)
|
|
||||||
|
|
||||||
MIDDLEWARE = CONFIG.get('middleware', [
|
MIDDLEWARE = CONFIG.get('middleware', [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
@ -659,3 +654,10 @@ MESSAGE_TAGS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SITE_ID = 1
|
SITE_ID = 1
|
||||||
|
|
||||||
|
|
||||||
|
# Load the allauth social backends
|
||||||
|
SOCIAL_BACKENDS = CONFIG.get('social_backends', [])
|
||||||
|
for app in SOCIAL_BACKENDS:
|
||||||
|
INSTALLED_APPS.append(app)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user