Executando a lista de verificação de implantação
Audite as configurações com manage.py check --deploy
Executando a lista de verificação de implantação é uma aula grátis de Django Academy no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Django Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Django Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
One Command to Audit Everything
Django ships a built-in security auditor. The deployment checklist scans your settings and warns you about anything unsafe before launch day. ✅
Run check --deploy
Run the check command with the deploy flag. It activates extra security checks that normal checks skip, printing warnings you can act on.
python manage.py check --deployReading the Warnings
Each warning has a code like security.W008 and a clear message. Use the code to look up exactly which setting to fix in the docs.
Check the Right Settings
Point the checker at your production config, not your dev one. Set DJANGO_SETTINGS_MODULE so it audits the file that will actually run live.
DJANGO_SETTINGS_MODULE=config.settings.prod python manage.py check --deployIt Flags DEBUG
If DEBUG is still True, the check shouts about it. A live site with DEBUG on leaks tracebacks and settings, so this is a hard stop.
It Flags Insecure Cookies
The checklist warns when SESSION_COOKIE_SECURE or CSRF_COOKIE_SECURE is off, reminding you to keep auth cookies on HTTPS only.
It Flags Missing HSTS
A zero SECURE_HSTS_SECONDS or missing SSL redirect triggers warnings too. The check nudges you toward forcing encrypted connections everywhere.
Silencing False Positives
A few warnings may not fit your setup. You can quiet specific ones with SILENCED_SYSTEM_CHECKS, but only after you truly understand each.
SILENCED_SYSTEM_CHECKS = ["security.W004"]Make It Fail the Build
Treat warnings as errors in CI by adding --fail-level. Now a risky setting breaks the pipeline instead of slipping into production.
python manage.py check --deploy --fail-level WARNINGMake It a Habit
Run the checklist on every release, not just the first. New apps and settings can quietly reintroduce risks the audit will catch for you.
Pair It With Other Checks
The deploy check is one layer. Run your tests and collectstatic in the same release step so code, assets, and security all get verified together.
Quick Check
Last question of the lesson, then a recap.
Recap: Ship With Confidence
You learned to run check --deploy, read its warning codes, point it at prod settings, and even fail CI on risk. Audit every release and ship with confidence. 🚀
Aprenda Python com um tutor de IA — grátis
Escreva e execute código real no seu navegador, obtenha ajuda instantânea de um tutor de IA 24/7 e continue de onde parou na web ou no app.
- Cursos
- 30
- Aulas
- 120
Perguntas Frequentes
A aula “Executando a lista de verificação de implantação” é grátis?
Sim — o texto completo de “Executando a lista de verificação de implantação” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Django Academy, atualize para CoddyKit PRO. O curso de Django Academy inclui 4 aulas no total.
O que vou aprender em “Executando a lista de verificação de implantação”?
Audite as configurações com manage.py check --deploy Você pratica Django Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar Django Academy?
Nenhuma experiência prévia é necessária. Django Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.
Quanto tempo leva a aula “Executando a lista de verificação de implantação”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de Django Academy?
Sim. Cada aula de Django Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- DEBUG, SECRET_KEY e ALLOWED_HOSTS
- HTTPS, HSTS e cookies seguros
- Defesas contra XSS, CSRF e injeção de SQL
- Executando a lista de verificação de implantação