feat: añadir app general con LogService centralizado
All checks were successful
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>
This commit is contained in:
juanjo
2026-04-16 16:50:53 +02:00
parent 91fc6900eb
commit 2f6564d9a6
19 changed files with 230 additions and 27 deletions

View File

@@ -2,6 +2,7 @@ from django.urls import path, include
from backend_admin import views as admin_views
urlpatterns = [
path('general/', include('general.urls')),
path('admin/', include('backend_admin.urls')),
path('promociones/', include('promociones.urls')),
path('api/token/', admin_views.api_token, name='token_obtain_pair'),