Compare commits

...

3 Commits

Author SHA1 Message Date
juanjo
379ce825f6 Merge pre-dev: fix api_hub_dispatcher → api_config
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-17 01:13:56 +02:00
juanjo
d7a84a4dfa Merge master: fix api_hub_dispatcher → api_config
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-17 01:13:54 +02:00
juanjo
fbc5f0f6c4 fix: reemplazar referencias a api_hub_dispatcher por api_config
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
ROOT_URLCONF, WSGI_APPLICATION, DJANGO_SETTINGS_MODULE apuntaban al
módulo renombrado — causaba ModuleNotFoundError al arrancar en Docker.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 01:13:52 +02:00
4 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import os import os
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_hub_dispatcher.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_config.settings')
application = get_asgi_application() application = get_asgi_application()

View File

@@ -74,7 +74,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'api_hub_dispatcher.urls' ROOT_URLCONF = 'api_config.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@@ -92,7 +92,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = 'api_hub_dispatcher.wsgi.application' WSGI_APPLICATION = 'api_config.wsgi.application'
# 3. DATABASE # 3. DATABASE
# En producción (cuando DB_HOST está definido) usa PostgreSQL. # En producción (cuando DB_HOST está definido) usa PostgreSQL.

View File

@@ -2,6 +2,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
# Este es el enlace con tus configuraciones # Este es el enlace con tus configuraciones
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_hub_dispatcher.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api_config.settings')
application = get_wsgi_application() application = get_wsgi_application()

View File

@@ -18,7 +18,7 @@ class Admin:
# 1. Autenticación # 1. Autenticación
user = authenticate(username=username, password=password) user = authenticate(username=username, password=password)
if user is not None: if user is not None:
# 2. Generación de JWT (Access & Refresh) # 2. Generación de JWT (Access & Refresh)
refresh = RefreshToken.for_user(user) refresh = RefreshToken.for_user(user)