Lockdown environment
Coding
Libraries and frameworks
Protocols
Databases
API
Security testing
Security in Django gives an overview of Django’s security features and advice on securing a Django-powered site.
Flask Security considerations