Browse Source

Revert debug settings

master
Joshua Rubingh 6 months ago
parent
commit
7e09b5f918
  1. 23
      VRE/VRE/settings.py

23
VRE/VRE/settings.py

@ -85,9 +85,9 @@ INSTALLED_APPS = [ @@ -85,9 +85,9 @@ INSTALLED_APPS = [
'corsheaders',
]
# if DEBUG:
# INSTALLED_APPS.append('django_extensions')
# INSTALLED_APPS.append('debug_toolbar')
if DEBUG:
INSTALLED_APPS.append('django_extensions')
INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
@ -104,8 +104,8 @@ MIDDLEWARE = [ @@ -104,8 +104,8 @@ MIDDLEWARE = [
'django.middleware.locale.LocaleMiddleware',
]
# if DEBUG:
# MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
if DEBUG:
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
ROOT_URLCONF = 'VRE.urls'
@ -262,11 +262,8 @@ OIDC_OP_USER_ENDPOINT = config('OIDC_OP_USER_ENDPOINT') @@ -262,11 +262,8 @@ OIDC_OP_USER_ENDPOINT = config('OIDC_OP_USER_ENDPOINT')
OIDC_OP_JWKS_ENDPOINT = config('OIDC_OP_JWKS_ENDPOINT')
# Login/logout after surfconext....
# LOGIN_REDIRECT_URL = config('LOGIN_REDIRECT_URL', default=(reverse_lazy('test-login-surfconext') if DEBUG else '/'))
# LOGOUT_REDIRECT_URL = config('LOGOUT_REDIRECT_URL', default=(reverse_lazy('test-login-surfconext') if DEBUG else '/'))
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
LOGIN_REDIRECT_URL = config('LOGIN_REDIRECT_URL', default=(reverse_lazy('test-login-surfconext') if DEBUG else '/'))
LOGOUT_REDIRECT_URL = config('LOGOUT_REDIRECT_URL', default=(reverse_lazy('test-login-surfconext') if DEBUG else '/'))
# Email settings for sending out upload invitations.
DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL', default='Do not reply<no-reply@rug.nl>')
@ -280,9 +277,9 @@ EMAIL_USE_TLS = config('EMAIL_USE_TLS', default=False, cast=bool) @@ -280,9 +277,9 @@ EMAIL_USE_TLS = config('EMAIL_USE_TLS', default=False, cast=bool)
# The code will use a reply-to header to make sure that replies goes to the researcher and not this address
EMAIL_FROM_ADDRESS = config('EMAIL_FROM_ADDRESS', default='Do not reply<no-reply@rug.nl>')
# if DEBUG:
# EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
# EMAIL_FILE_PATH = BASE_DIR / 'sent_emails'
if DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = BASE_DIR / 'sent_emails'
# Study settings
# Duration of the JWT invite link in seconds. Default is 3 days

Loading…
Cancel
Save