juanjo
30c540b6f9
revert: restaurar nombre api_config (revertir renombrado erróneo)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-16 23:31:08 +02:00
juanjo
778753afd6
refactor: renombrar proyecto principal api_config → api_hub_dispatcher
...
- Renombrar carpeta app/api_config/ → app/api_hub_dispatcher/
- Actualizar DJANGO_SETTINGS_MODULE en asgi.py, wsgi.py, manage.py
- Actualizar ROOT_URLCONF y WSGI_APPLICATION en settings.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-16 23:28:43 +02:00
juanjo
0fc5392bd2
fix engram rtk
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-16 18:24:13 +02:00
juanjo
2f6564d9a6
feat: añadir app general con LogService centralizado
...
DEPLOY_MULTI_BRACH/pipeline/pr-dev This commit looks good
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- Crear app/general con estructura estándar del proyecto:
· utilidades/acciones.py → LogService.gestionar_log() (única fuente de logs)
· utilidades/utils.py → get_client_ip()
· utilidades/custom_errors.py → ValidationError, ExternalServiceError, NotFoundError
· exception.py, request.py, serializers.py, validaciones/
- Registrar 'general' en INSTALLED_APPS y añadir general/ a urls.py
- Refactorizar promociones/views.py para usar LogService en lugar de Log directo
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-16 16:50:53 +02:00
juanjo
91fc6900eb
refactor: mover BD SQLite a carpeta data/
...
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- Mover db.sqlite3 de raíz a data/db.sqlite3
- Actualizar settings.py: fallback SQLite a data/ cuando DB_HOST no está definido
- Actualizar .gitignore: ignorar data/* pero mantener data/.gitkeep
- Actualizar init_db.py: mensaje apunta a data/db.sqlite3
- Añadir data/.gitkeep para anclar la carpeta en git
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-16 16:33:26 +02:00
juanjo
299428741b
refactor: reorganizar estructura del proyecto al estándar app/api_config
...
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- core/ → app/api_config/
- apps/backend_admin/ → app/backend_admin/
- apps/common/ → app/common/
- apps/promociones/ → app/promociones/
- manage.py → app/manage.py
- Añadir app/requirements.txt
- Actualizar todos los imports y referencias (DJANGO_SETTINGS_MODULE, ROOT_URLCONF, WSGI_APPLICATION, INSTALLED_APPS)
- Actualizar Dockerfile con nuevo WORKDIR
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-16 16:01:17 +02:00