A Django application can work perfectly and still have security weaknesses that are easy to overlook. From exposed credentials and misconfigured settings to weak permissions, small mistakes can put an entire application at risk. In this talk, we'll look at common security issues developers encounter when building Django applications, explore why they happen, and demonstrate practical ways to address them. Attendees will leave with a better understanding of Django's security features and simple practices they can apply to make their applications safer.
Getting a Django application to work is exciting, but how confident are we that it is safe?
Security is sometimes treated as something to think about after development. In reality, decisions made during development and deployment can introduce weaknesses that are difficult to spot until something goes wrong.
In this session, we'll take a practical look at securing a Django application. Using relatable examples, we'll explore common mistakes, understand how they create security risks, and see how Django's built-in features can help prevent them.
We'll cover:
Protecting sensitive information: How exposed API keys, credentials, and environment variables can compromise an application.
Authentication and permissions: Why logging in is not enough, and how to ensure users can only access what they are supposed to.
Django security settings: Understanding DEBUG, ALLOWED_HOSTS, CSRF protection, and secure cookies.
Common application vulnerabilities: Recognising security weaknesses and understanding how they can be exploited.
Safer deployment practices: What to check before making a Django application publicly accessible.
By the end of the session, attendees should be able to recognise common security mistakes, understand how to address them, and apply a practical security checklist to their own Django projects.
The goal is simple: help developers build applications that don't just work, but are also safer and more trustworthy.