aboutsummaryrefslogtreecommitdiffstats
path: root/manager/settings.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--manager/settings.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/manager/settings.py b/manager/settings.py
index c2ffdf6..e145e45 100644
--- a/manager/settings.py
+++ b/manager/settings.py
@@ -66,6 +66,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'impersonate',
]
MIDDLEWARE = [
@@ -76,6 +77,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
+ 'impersonate.middleware.ImpersonateMiddleware',
]
AUTHLIB_OAUTH_CLIENTS = {
@@ -174,4 +176,8 @@ STATICFILES_DIRS = [
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
-FQD_BASE_URL = 'http://127.0.0.1:8000' \ No newline at end of file
+FQD_BASE_URL = 'http://127.0.0.1:8000'
+
+# Impersonate settings
+REQUIRE_SUPERUSER = True
+ALLOW_SUPERUSER = False \ No newline at end of file