Compare commits

...

2 Commits

Author SHA1 Message Date
b4ab653c95 Merge pull request 'Update settings.py' (#22) from pre-dev into dev
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/pr-master This commit looks good
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
Reviewed-on: #22
2026-04-14 21:25:16 +00:00
minguezsanzjuanjose
c32092d216 Update settings.py
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 23:24:27 +02:00

View File

@@ -3,6 +3,18 @@ import os
from dotenv import load_dotenv from dotenv import load_dotenv
from datetime import timedelta from datetime import timedelta
SIMPLE_JWT = {
# Cambiamos el tiempo de acceso a 3 horas
'ACCESS_TOKEN_LIFETIME': timedelta(hours=3),
# El tiempo del refresh token suele ser mayor (por ejemplo, 1 día)
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
# Otras configuraciones que ya tengas...
'ALGORITHM': 'HS256',
'AUTH_HEADER_TYPES': ('Bearer',),
}
# 1. RUTA DEL SETTINGS Y CARGA DEL .ENV # 1. RUTA DEL SETTINGS Y CARGA DEL .ENV
# Obtenemos la ruta de la carpeta donde está este archivo (core/) # Obtenemos la ruta de la carpeta donde está este archivo (core/)
CURRENT_DIR = Path(__file__).resolve().parent CURRENT_DIR = Path(__file__).resolve().parent