This commit is contained in:
Nukeap committed 2024-06-07 15:45:37 +03:00
1 parent 0f8588fc0f
commit f3da32cea2
5 files changed
+177 -23

No files matched your search

+3
View File
@@ -1,7 +1,10 @@
from datetime import timedelta
class Settings():
def __init__(self) -> None:
self.secret_key='V7bvDZMztr3EU8S9g1Dipw'
self.redis_hosts = [("127.0.0.1", 6379)]
self.access_token_lifetime = timedelta(minutes=480)
self.refresh_token_lifetime = timedelta(days=1)
self.db = {
'default':{
'ENGINE': 'django.db.backends.mysql',
+2 -2
View File
@@ -189,8 +189,8 @@ from datetime import timedelta
SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=30),
"REFRESH_TOKEN_LIFETIME": timedelta(days=1),
"ACCESS_TOKEN_LIFETIME": stngs.access_token_lifetime,
"REFRESH_TOKEN_LIFETIME": stngs.refresh_token_lifetime,
"ROTATE_REFRESH_TOKENS": False,
"BLACKLIST_AFTER_ROTATION": False,
"UPDATE_LAST_LOGIN": False,