Learn how to configure a Django production server with settings that ensure your Python website is secure before releasing it to the public. In addition to installing an SSL certificate and verifying the deployment with python manage.py check --deploy, these Django settings include:
• SECRET_KEY
• SESSION_COOKIE_SECURE
• CSRF_COOKIE_SECURE
• SECURE_SSL_REDIRECT
• SECURE_HSTS_SECONDS
• SECURE_HSTS_PRELOAD
• SECURE_HSTS_INCLUDE_SUBDOMAINS
• ALLOWED_HOSTS
• DEBUG
• STATIC_ROOT
• STATIC_URL
Check out my short domain name search engine that was featured in this video https://micro.domains
0:57 Hide the secret key
2:25 Install SSL certificate
2:53 HTTPS settings
3:35 HSTS settings
4:45 ALLOWED_HOSTS
5:15 Turn off debug
6:10 Copy static files
7:11 Run the deployment checklist
Code snippets and more at https://tonyteaches.tech/django-produ...
Check out my vlog channel @TonyFlorida
#django