Django Cursor Rules Starter (Free)
Free Django Cursor rules in .mdc format, checked against current Django docs, plus a linter that shows why a rule isn't applying.
View Django Cursor Rules Starter (Free)
10 Django rules your agent actually follows: each one attaches only to the files it's about, states the version-specific behavior, and installs with one command.

10 Cursor project rules (.mdc) for Django, scoped so each loads only when relevant, with an installer that detects your stack, an AGENTS.md exporter (Claude Code, Codex) and a rules linter. Written against current docs (checked Nov 2026; Django 5.2 LTS/6.0).
The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 8 tests OK on Python 3.13 and 3.10.

python3 tools/install_rules.py --detect /path/to/app # what it finds
python3 tools/install_rules.py /path/to/app --auto # install rules for detected stacks into .cursor/rules/
python3 tools/install_rules.py /path/to/app --all --agents-md # everything, plus AGENTS.md
python3 tools/lint_rules.py /path/to/app/.cursor/rules --project /path/to/appExisting files are never overwritten unless you pass --force; --dry-run previews. ./tools/demo.sh runs it on examples/sample-app; ./run_tests.sh runs the tests. As a Cursor plugin, the manifest is .cursor-plugin/plugin.json.
| Rule | Loads | First instruction |
|---|---|---|
| django-overview.mdc | always | Check the Django version (requirements/pyproject/lockfile) before using an API |
| django-models-orm.mdc | by file (/models.py, /models/*.py, /managers.py, /services.py) | Avoid N+1 queries: select_related() for ForeignKey/OneToOne, prefetch_related() for reverse and many-to-many |
| django-migrations.mdc | by file (/migrations/*.py) | Never edit a migration that has been applied in any shared environment |
| django-views-urls.mdc | by file (/views.py, /views/*.py, /urls.py) | Match the repo's style (function-based or class-based views) |
| django-forms-validation.mdc | by file (/forms.py, /forms/*.py) | Validate all user input through a Form, ModelForm or serializer |
| django-security.mdc | by file (/settings.py, /settings/*.py) | Production: DEBUG = False, explicit ALLOWED_HOSTS, SECRET_KEY from the environment, SECURE_SSL_REDIRECT,... |
| django-templates.mdc | by file (/templates//*.html) | Keep autoescaping on |
| django-tasks.mdc | Agent picks it | Use the queue the project already has (Celery, RQ, Django-Q, or Django 6.0 django.tasks) |
| django-drf.mdc | by file (/serializers.py, /api//*.py, /viewsets.py) | Serializers list fields explicitly |
| django-testing.mdc | by file (/tests.py, /tests//*.py, /test_*.py, conftest.py) | Use the framework the repo uses (pytest-django or django.test.TestCase) |
Zip, 21 KB, v1.0, 31 files. You may use and modify this kit for your own work and for clients you serve, including paid client work. Not affiliated with or endorsed by Cursor (Anysphere) or the Django Software Foundation.
10 Cursor rules for Django (models and N+1 and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.
Free Django Cursor rules in .mdc format, checked against current Django docs, plus a linter that shows why a rule isn't applying.
View Django Cursor Rules Starter (Free)9 Cursor rules for Rails (Active Record and more), written against current docs. Installs in one command, exports AGENTS.md. $12 once.
View Cursor Rules for RailsFree Rails Cursor rules in .mdc format, checked against current Rails docs, plus a linter that shows why a rule isn't applying.
View Rails Cursor Rules Starter (Free)