- 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>
9 lines
329 B
Python
9 lines
329 B
Python
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'),
|
|
] |