feat: Add detailed park and ride pages with HTMX integration

- Implemented park detail page with dynamic content loading for rides and weather.
- Created park list page with filters and search functionality.
- Developed ride detail page showcasing ride stats, reviews, and similar rides.
- Added ride list page with filtering options and dynamic loading.
- Introduced search results page with tabs for parks, rides, and users.
- Added HTMX tests for global search functionality.
This commit is contained in:
pacnpal
2025-12-19 19:53:20 -05:00
parent bf04e4d854
commit b9063ff4f8
154 changed files with 4536 additions and 2570 deletions

View File

@@ -49,9 +49,17 @@ class Command(BaseCommand):
if files:
current_path = os.path.join(old_dir, files[0])
# Skip if file still not found
# If file still not found, set placeholder and continue
if not os.path.exists(current_path):
self.stdout.write(f"Skipping {current_name} - file not found")
placeholder = os.path.join("placeholders", "default.svg")
try:
photo.image.name = placeholder
photo.save()
self.stdout.write(
f"File for {current_name} not found; set placeholder {placeholder} for photo {photo.id}"
)
except Exception as e:
self.stdout.write(f"Error setting placeholder for photo {photo.id}: {e}")
continue
# Get content type and object