Django

From Mte90/dotfiles · View interactive version

Django is an AI agent skill from the GitHub repository Mte90/dotfiles. Use when building Django applications - security hardening, authentication and permissions, ORM optimization, PostgreSQL features, Django 6.0, migrations, testing, and ecosystem libraries

How to use this skill

Skill file

Django

Comprehensive guide to Django covering security, ORM, PostgreSQL, GeoDjango, Django 6.0 essentials, admin extensions, and ecosystem tools.

Overview

Django provides a batteries-included web framework with robust features out of the box:

Specialized Skills

For deeper coverage of specific domains, see these dedicated skills:


Deep Dives

Load these reference files on demand for detailed coverage:


Best Practices

  1. Always use {% csrf_token %} in POST forms
  2. Use HTTPS in production (SECURE_SSL_REDIRECT = True)
  3. Enable HSTS for secure connections
  4. Set secure cookies (SESSION_COOKIE_SECURE = True)
  5. Use strong password validation
  6. Use @login_required for protected views
  7. Never expose sensitive data in URLs or logs
  8. Validate file uploads carefully
  9. Use prepared statements (Django ORM does this automatically)

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.