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