{"filename":"htmx-django-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for HTMX development with Django integration.\"\nglobs: **/*\nalwaysApply: false\n---\n// HTMX with Django .cursorrules\n\n// HTMX and Django best practices\n\nconst htmxDjangoBestPractices = [\n  \"Use Django's template system with HTMX attributes\",\n  \"Implement Django forms for form handling\",\n  \"Utilize Django's URL routing system\",\n  \"Use Django's class-based views for HTMX responses\",\n  \"Implement Django ORM for database operations\",\n  \"Utilize Django's middleware for request/response processing\",\n];\n\n// Folder structure\n\nconst folderStructure = `\nproject_name/\n  app_name/\n    templates/\n    static/\n      css/\n      js/\n    models.py\n    views.py\n    urls.py\n  project_name/\n    settings.py\n    urls.py\nmanage.py\n`;\n\n// Additional instructions\n\nconst additionalInstructions = `\n1. Use Django's template tags with HTMX attributes\n2. Implement proper CSRF protection with Django's built-in features\n3. Utilize Django's HttpResponse for HTMX-specific responses\n4. Use Django's form validation for HTMX requests\n5. Implement proper error handling and logging\n6. Follow Django's best practices for project structure\n7. Use Django's staticfiles app for managing static assets\n`;\n"}