Make Applications Real•Reading lesson•Free
Overview
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
Project 4 - Prepare Your Application for Production
This project demonstrates a production-oriented Django configuration.
It is intentionally a configuration exercise rather than a large application.
Install
bash
python -m pip install -r requirements.txtCopy .env.example to .env and set values appropriate to your environment.
Development
bash
python manage.py check
python manage.py runserverProduction-style checks
bash
python manage.py check --deployThe project demonstrates:
- environment variables
- secret configuration
DEBUG