mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 20:47:00 -05:00
feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user