Bird
0
0

After running python manage.py check --deploy, you see a warning about SECURE_SSL_REDIRECT not being set. What will happen if you ignore this warning?

medium📝 component behavior Q13 of 15
Django - Security Best Practices
After running python manage.py check --deploy, you see a warning about SECURE_SSL_REDIRECT not being set. What will happen if you ignore this warning?
AYour site will not redirect HTTP requests to HTTPS, risking insecure connections
BYour database migrations will fail
CYour static files will not load
DYour admin login page will be disabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand the warning about SECURE_SSL_REDIRECT

    This setting forces HTTP requests to redirect to HTTPS, securing data in transit.
  2. Step 2: Consequences of ignoring the warning

    If not set, users can connect over insecure HTTP, exposing sensitive data.
  3. Final Answer:

    Your site will not redirect HTTP requests to HTTPS, risking insecure connections -> Option A
  4. Quick Check:

    SSL redirect missing = insecure HTTP allowed [OK]
Quick Trick: SSL redirect warning means HTTP stays open, fix it! [OK]
Common Mistakes:
MISTAKES
  • Thinking it affects database or static files
  • Assuming admin page disables automatically
  • Ignoring HTTPS importance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes