Complete source code for the example in my article on Django middleware.
- Clone repository
- (Optional but recommended) Create a virtual environment,
python -m venv venv
, and activate it,source venv/bin/activate
- Install requirements,
pip install -r requirements.txt
- Run:
python manage.py runserver