#12 Changed djangorestframework-jwt to djangorestframework-simplejwt
This commit is contained in:
+3
-2
@@ -14,6 +14,7 @@ from dotenv import load_dotenv
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
from sikweb.base import *
|
||||
from datetime import timedelta
|
||||
|
||||
load_dotenv() # loads the configs from .env
|
||||
|
||||
@@ -61,7 +62,7 @@ DEFAULT_EMAIL_FROM = "SIK"
|
||||
DEFAULT_EMAIL_FROM_ADDR = "noreply@sahkoinsinoorikilta.fi"
|
||||
ENABLE_AUTOMATIC_EMAILS = True
|
||||
|
||||
# Database settings
|
||||
# Database settingsfrom datetime import timedelta
|
||||
# Only uncomment if default settings in base.py are not ok
|
||||
|
||||
DB_OPTIONS = {"sslmode": "require"} if os.getenv("DB_SSL", False) == "True" else {}
|
||||
@@ -76,4 +77,4 @@ DATABASES = {
|
||||
"PORT": os.getenv("DB_PORT", 5432),
|
||||
"OPTIONS": DB_OPTIONS,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user