django-security
Installation
SKILL.md
Django Security
When to use
This skill is the Django-specific layer on top of secure-coding. Use it when Django gets in its own way: defaults that invite misunderstanding, ORM paths that look safe but still allow SQLi, or settings that may go wrong per environment.
Triggers on:
- A question like "review this Django app", "is our deploy safe", "what are our SECURE_ settings", "are we using CSRF correctly", "Django admin hardening".
- Presence of
manage.py,settings.py,urls.py,models.py,views.py, Django middleware class paths inMIDDLEWARE, DRFviewsets.pyorserializers.py. - A PR that introduces
@csrf_exempt,|safe,mark_safe,.raw(),.extra(),RawSQL, orHttpResponse(user_input). - Django version bumps that are a security release (release notes will explicitly mention fixes).
- A handoff from
security-reviewwhere Django is in the stack.