Integrate Django Cotton for modular frontend components

Integrates django-cotton into the project by adding it to INSTALLED_APPS and pyproject.toml, and refactors base.html to use cotton components for the auth modal and toast container, creating new component files for these elements.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: eff39de1-3afa-446d-a965-acaf61837fc7
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/eff39de1-3afa-446d-a965-acaf61837fc7/jGCMVeA
This commit is contained in:
pac7
2025-09-21 13:16:27 +00:00
committed by pacnpal
parent 8f9e66d9f7
commit 7d745cd517
7 changed files with 480 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
{% load static %}
{% load cotton %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -127,11 +128,11 @@
</div>
</footer>
<!-- Global Auth Modal -->
{% include 'components/auth/auth-modal.html' %}
<!-- Global Auth Modal (Cotton Component) -->
<c-auth.modal />
<!-- Global Toast Container -->
{% include 'components/ui/toast-container.html' %}
<!-- Global Toast Container (Cotton Component) -->
<c-ui.toast />
<!-- Custom JavaScript with cache control -->
<script src="{% static 'js/main.js' %}?v={{ version|default:'1.0' }}"></script>