Tsallaka zuwa abun ciki
Justice Tech School

Deployment Basics

Turn off debug, set hosts and collect static files.

Example
DEBUG = False
ALLOWED_HOSTS = ["example.com"]
STATIC_ROOT = BASE_DIR / "staticfiles"
# python manage.py collectstatic

Exercise

Collect.

manage.py static

Quiz Test

Which setting lists valid domains?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.