feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.

This commit is contained in:
pacnpal
2025-12-28 17:32:53 -05:00
parent aa56c46c27
commit c95f99ca10
452 changed files with 7948 additions and 6073 deletions

View File

@@ -1,15 +1,18 @@
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.static import serve
from apps.accounts import views as accounts_views
from django.views.generic import TemplateView
from .views import HomeView
from . import views
import os
from typing import Any
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from django.views.generic import TemplateView
from django.views.static import serve
from apps.accounts import views as accounts_views
from . import views
from .views import HomeView
# Import API documentation views
# Ensure names are always defined for static analyzers / type checkers.
# Annotate as Any so static analysis won't complain that they might be None
@@ -20,8 +23,8 @@ SpectacularRedocView: Any = None
try:
from drf_spectacular.views import (
SpectacularAPIView,
SpectacularSwaggerView,
SpectacularRedocView,
SpectacularSwaggerView,
)
HAS_SPECTACULAR = True

View File

@@ -1,16 +1,17 @@
from django.shortcuts import render
from django.views.generic import TemplateView
from django.db.models import Q
from django.core.cache import cache
from apps.parks.models import Park, Company
from apps.rides.models import Ride
from apps.core.analytics import PageView
from django.conf import settings
import logging
import os
import secrets
from django.conf import settings
from django.core.cache import cache
from django.db.models import Q
from django.shortcuts import render
from django.views.generic import TemplateView
from apps.core.analytics import PageView
from apps.core.logging import log_exception
from apps.parks.models import Company, Park
from apps.rides.models import Ride
logger = logging.getLogger(__name__)