mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 10:51:09 -05:00
- 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
2.4 KiB
2.4 KiB
Search Integration Plan
1. File Structure
core/
├── views/
│ └── search.py # Search views implementation
├── utils/
│ └── search.py # Search utilities
templates/
└── core/
└── search/ # Search templates
├── results.html
├── filters.html
└── ...
2. View Migration
- Move
search/views.py→core/views/search.py - Update view references:
# Old: from search.views import AdaptiveSearchView
# New:
from core.views.search import AdaptiveSearchView, FilterFormView
3. URL Configuration Updates
Update thrillwiki/urls.py:
# Before:
path("search/", include("search.urls", namespace="search"))
# After:
path("search/", include("core.urls.search", namespace="search"))
Create core/urls/search.py:
from django.urls import path
from core.views.search import AdaptiveSearchView, FilterFormView
from rides.views import RideSearchView
urlpatterns = [
path('parks/', AdaptiveSearchView.as_view(), name='search'),
path('parks/filters/', FilterFormView.as_view(), name='filter_form'),
path('rides/', RideSearchView.as_view(), name='ride_search'),
path('rides/results/', RideSearchView.as_view(), name='ride_search_results'),
]
4. Import Cleanup Strategy
- Update all imports:
# Before:
from search.views import ...
from search.utils import ...
# After:
from core.views.search import ...
from core.utils.search import ...
- Remove old search app:
rm -rf search/
- Update
INSTALLED_APPSinthrillwiki/settings.py:
# Remove 'search' from INSTALLED_APPS
INSTALLED_APPS = [
# ...
# 'search', # REMOVE THIS LINE
# ...
]
5. Implementation Steps
- Create new directory structure in core
- Move view logic to
core/views/search.py - Create URL config in
core/urls/search.py - Move templates to
templates/core/search/ - Update all import references
- Remove old search app
- Test all search functionality:
- Park search filters
- Ride search
- HTMX filter updates
- Verify URL routes
6. Verification Checklist
- All search endpoints respond with 200
- Filter forms render correctly
- HTMX updates work as expected
- No references to old search app in codebase
- Templates render with correct context