Rule
0 installs · 0 said it worked
Cursor rules guiding HTMX and Django project development
A .cursorrules file that steers Cursor to build Django apps with HTMX, covering template attributes, forms, URL routing, CSRF protection, and project folder structure.
People use this for
- htmx django cursor rules
- django htmx project setup
- cursorrules for django web apps
- htmx forms csrf django
- help me set up cursor for django htmx
- Name
cursor-rules-guiding-htmx-and-django-project-development- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-htmx-and-django-project-development-287q/export/mdc" -o .cursor/rules/cursor-rules-guiding-htmx-and-django-project-development.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-guiding-htmx-and-django-project-development.mdc as .cursor/rules/cursor-rules-guiding-htmx-and-django-project-development.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-htmx-and-django-project-development.mdc for every project, then start a new session.
Rule
description: "Cursor rules for HTMX development with Django integration." globs: */ alwaysApply: false
// HTMX with Django .cursorrules
// HTMX and Django best practices
const htmxDjangoBestPractices = [ "Use Django's template system with HTMX attributes", "Implement Django forms for form handling", "Utilize Django's URL routing system", "Use Django's class-based views for HTMX responses", "Implement Django ORM for database operations", "Utilize Django's middleware for request/response processing", ];
// Folder structure
const folderStructure = project_name/ app_name/ templates/ static/ css/ js/ models.py views.py urls.py project_name/ settings.py urls.py manage.py;
// Additional instructions
const additionalInstructions = `
- Use Django's template tags with HTMX attributes
- Implement proper CSRF protection with Django's built-in features
- Utilize Django's HttpResponse for HTMX-specific responses
- Use Django's form validation for HTMX requests
- Implement proper error handling and logging
- Follow Django's best practices for project structure
- Use Django's staticfiles app for managing static assets `;
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Master prompt for building a district campaign field operations platform
A long master development prompt asking an AI to build a full-stack government district campaign management, field data collection, verification, and payment platform.
Coding · @maarifkhatri91
- Cursor rules guiding Django and Python web app development
A .mdc rule set that makes Cursor act as a Django/Python expert, covering project structure, ORM use, error handling, security, performance, and testing conventions.
Coding · @patrickjs
- Cursor rules for building Next.js, Supabase, and shadcn PWAs with build notes
A .mdc rules file that sets coding style, stack conventions, and build-notes and context-file rules for an AI agent building a Next.js, Supabase, Shadcn UI Progressive Web App.
Coding · @patrickjs
- Apple App Store review compliance plan generator for iOS apps
A system-style prompt that makes the model act as an App Store review compliance specialist, checking an iOS app against 18 Apple guideline requirements and producing a prioritized plan to prevent rejection before submission.
Coding · @evg1n
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.