- Project created via
django-admin startproject - App created via
python manage.py startapp core - App (
core) is added toINSTALLED_APPSinsettings.py
-
login_viewcreated and working - Accepts both email and username
- Displays validation errors with
messages -
login.htmltemplate created - Login form field names match view logic (
username,password)
-
registerview andregister.htmlcreated - ❗You haven't yet implemented user creation (form + logic)
- Add
logout_viewto end session and redirect
from django.contrib.auth import logout
def logout_view(request):
logout(request)
return redirect('landing')-
urls.pyincludes paths tologin,register, andlanding -
base.htmlor nav links use{% url %}to prevent hardcoding
- Templates stored in
templates/ - Static files (e.g. CSS) stored in
static/, withSTATICFILES_DIRSconfigured insettings.py -
{% load static %}used at top of templates - Forms and messages are styled or at least visible to user
-
TEMPLATES['DIRS']includes yourtemplates/directory -
STATICFILES_DIRSincludes yourstatic/directory -
LOGIN_URLandLOGIN_REDIRECT_URLoptionally set
- Test login with correct and incorrect credentials
- Test registration flow (once implemented)
- Test static file loading and responsiveness
- 🔧 Implement registration logic to create users
- 🔐 Add logout view and link
- 📱 Make the site responsive with mobile styles (optional but great UX)
- 📂 Create a dashboard or profile page for logged-in users (optional)