Overview
No account is required. Learn the material, try the examples, and mark it complete when you are ready to move on. Sign in with email only if you want to save progress across devices.
Project 5 - Deploy Your Application
This is a small deployment-ready Django application.
The repository is provider-neutral. Use the hosting provider selected for your class and map its settings to the values in .env.example.
Local setup
python -m pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --noinput
python manage.py runserverProduction start command
gunicorn deploy_project.wsgiDeployment checklist
Configure these environment variables on the hosting provider:
SECRET_KEY
DEBUG=False
ALLOWED_HOSTS
CSRF_TRUSTED_ORIGINS
DATABASE_URL (if using a hosted database)After deployment, verify the public URL and inspect application logs if something fails.
This project intentionally does not hard-code a provider-specific deployment recipe. The teaching objective is understanding what deployment requires.
Lesson resources
Supporting code and files from this part of the curriculum.
Finished this lesson?
Keep your place here, or save it across devices with an email link.
Saved in this browser. Save progress with email →