mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:11:08 -05:00
feat: complete monorepo structure with frontend and shared resources
- Add complete backend/ directory with full Django application - Add frontend/ directory with Vite + TypeScript setup ready for Next.js - Add comprehensive shared/ directory with: - Complete documentation and memory-bank archives - Media files and avatars (letters, park/ride images) - Deployment scripts and automation tools - Shared types and utilities - Add architecture/ directory with migration guides - Configure pnpm workspace for monorepo development - Update .gitignore to exclude .django_tailwind_cli/ build artifacts - Preserve all historical documentation in shared/docs/memory-bank/ - Set up proper structure for full-stack development with shared resources
This commit is contained in:
48
backend/apps/location/views.py
Normal file
48
backend/apps/location/views.py
Normal file
@@ -0,0 +1,48 @@
|
||||
# DEPRECATED: These views are deprecated and no longer used.
|
||||
#
|
||||
# Location search functionality has been moved to the parks app:
|
||||
# - parks.views.location_search
|
||||
# - parks.views.reverse_geocode
|
||||
#
|
||||
# Domain-specific location models are now used instead of the generic Location model:
|
||||
# - ParkLocation in parks.models.location
|
||||
# - RideLocation in rides.models.location
|
||||
# - CompanyHeadquarters in parks.models.companies
|
||||
#
|
||||
# This file is kept for reference during migration cleanup only.
|
||||
|
||||
from django.views.generic import View
|
||||
from django.http import JsonResponse
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.views.decorators.http import require_http_methods
|
||||
|
||||
|
||||
# NOTE: All classes and functions below are DEPRECATED
|
||||
# Use the equivalent functionality in the parks app instead
|
||||
|
||||
|
||||
class LocationSearchView(View):
|
||||
"""DEPRECATED: Use parks.views.location_search instead"""
|
||||
|
||||
|
||||
class LocationCreateView(LoginRequiredMixin, View):
|
||||
"""DEPRECATED: Use domain-specific location models instead"""
|
||||
|
||||
|
||||
class LocationUpdateView(LoginRequiredMixin, View):
|
||||
"""DEPRECATED: Use domain-specific location models instead"""
|
||||
|
||||
|
||||
class LocationDeleteView(LoginRequiredMixin, View):
|
||||
"""DEPRECATED: Use domain-specific location models instead"""
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
def reverse_geocode(request):
|
||||
"""DEPRECATED: Use parks.views.reverse_geocode instead"""
|
||||
return JsonResponse(
|
||||
{
|
||||
"error": "This endpoint is deprecated. Use /parks/search/reverse-geocode/ instead"
|
||||
},
|
||||
status=410,
|
||||
)
|
||||
Reference in New Issue
Block a user