CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/django-security-basics

Security essentials for Django — CSRF, CORS, security middleware, ALLOWED_HOSTS,

99

2.91x
Quality

99%

Does it follow best practices?

Impact

99%

2.91x

Average score across 2 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-2/

User Registration and Login App

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.

Features

  • Registration -- sign-up form with username, email, password, and password confirmation
  • Login -- login form with username and password
  • Profile -- a page showing the logged-in user's username, email, and date joined
  • Logout -- a logout link that ends the session

Output

Produce a Django project in a userauth/ directory:

  • userauth/settings.py -- Django settings with proper configuration
  • userauth/urls.py -- project URL configuration
  • accounts/forms.py -- registration and login forms
  • accounts/views.py -- views for registration, login, profile, logout
  • accounts/urls.py -- app URL patterns
  • accounts/templates/accounts/register.html -- registration template
  • accounts/templates/accounts/login.html -- login template
  • accounts/templates/accounts/profile.html -- profile template
  • requirements.txt -- Python dependencies

Set up the project with proper settings. Do not include test files.

evals

tile.json