Security essentials for Django — CSRF, CORS, security middleware, ALLOWED_HOSTS,
99
99%
Does it follow best practices?
Impact
99%
2.91xAverage score across 2 eval scenarios
Passed
No known issues
Build a Django app with user registration and login. Users should be able to sign up with email and password, log in, and view their profile. Use Django's built-in auth system.
Produce a Django project in a userauth/ directory:
userauth/settings.py -- Django settings with proper configurationuserauth/urls.py -- project URL configurationaccounts/forms.py -- registration and login formsaccounts/views.py -- views for registration, login, profile, logoutaccounts/urls.py -- app URL patternsaccounts/templates/accounts/register.html -- registration templateaccounts/templates/accounts/login.html -- login templateaccounts/templates/accounts/profile.html -- profile templaterequirements.txt -- Python dependenciesSet up the project with proper settings. Do not include test files.