AI Tools & Scripts
Django Settings Check
Check Django settings before you deploy: DEBUG on, SECRET_KEY in code, ALLOWED_HOSTS '*', database passwords in code, missing CSRF protection, insecure cookies, HTTPS off, CORS open to all, and weak password hashers.
What you get: 1 file · 16.58 KB · ZIP
See purchase optionsProduct description
One forgotten line in settings.py can show your whole configuration to visitors (DEBUG = True) or let anyone forge sessions (a SECRET_KEY in the repository). This skill finds those and nine other Django settings mistakes before you deploy, and tells you how to fix each one.
Your agent runs a scanner on your settings files: settings.py, a settings/ folder (base.py, production.py) and local_settings.py. It reads them with Python's own parser, so it understands real code, including settings inside if and try blocks and fallback defaults in environment lookups. It never imports or runs your settings. Development and test settings files are read but not reported. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Keys and passwords are never printed.
What it checks
BLOCK (fix before shipping)
D01: DEBUG = True, also when an environment lookup defaults to true
D02: a SECRET_KEY written in the file, or used as a hardcoded fallback default
D03: '*' in ALLOWED_HOSTS
D04: a database password or a database URL with a password in DATABASES
D05: another secret setting in the file, such as EMAIL_HOST_PASSWORD or AWS_SECRET_ACCESS_KEY
REVIEW (check before release)
D11: MIDDLEWARE without CsrfViewMiddleware
D12: session or CSRF cookies set to insecure, or the session cookie readable by JavaScript
D13: SECURE_SSL_REDIRECT off or SECURE_HSTS_SECONDS = 0
D14: django-cors-headers allowing every origin
D15: an MD5, SHA1, unsalted or crypt hasher first in PASSWORD_HASHERS
D16: an empty AUTH_PASSWORD_VALIDATORS list
What's included
The scanner (Python 3.9+, standard library only)
A rules guide with the reason and safer approach for each rule
Risky and safe example settings, and the real report the scanner produces on the risky one
Limits
Each settings file is checked on its own, so values imported with from .base import * or set by environment variables are not seen. Run python manage.py check --deploy too. NOT FLAGGED is not a guarantee.
Contents
One ZIP file with 7 files: SKILL.md, the scanner in scripts/ (2 Python files), references/rules.md (every rule with its reason and safer approach), and examples/ (2 example files plus report.md, the real scanner output on the risky example).
How to use: This is an agent skill: a folder with a SKILL.md file and Python scripts that an AI coding agent such as Claude Code, Cursor, or Codex CLI can run. Unzip it into your agent's skills folder (for Claude Code: ~/.claude/skills/), then ask your agent to check your project. The scripts also run on their own with Python 3.9 or newer, with nothing to install. They read your files only: no network access, and nothing is sent anywhere.
What you get
1 file · 16.58 KB
- django-settings-check-1.0.0.zipZIP · 16.58 KB
AI Tools & Scripts
Django Settings Check
Check Django settings before you deploy: DEBUG on, SECRET_KEY in code, ALLOWED_HOSTS '*', database passwords in code, missing CSRF protection, insecure cookies, HTTPS off, CORS open to all, and weak password hashers.
Included in Getly ProGet Pro
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 1 file - ZIP - 16.58 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$5.00



