Code for the book Django for Startups
-
Create a virtualenv using
python3 -m venv .
-
Activate the virtualenv with
. bin/activate
-
Install pip-tools using:
pip install pip-tools
-
Run
pip-compile --output-file requirements.txt requirements.in && pip install -r requirements.txt
. This generates the requirements.txt file from the requirements.in file. If this doesn't work, try upgrading setuptools. -
If not already installed, install Homebrew: https://brew.sh/.
-
Run
brew update
-
Install Redis locally on your mac:
brew install redis
-
Start redis locally using:
brew services start redis
python django_for_startups/manage.py runserver
python django_for_startups/manage.py test
python scripts/list_outdated.py