Alex3917 / django_for_startups

Code for the book Django for Startups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django_for_startups

Code for the book Django for Startups

Instructions for running locally on MacOS with Python 3.8:

  1. Create a virtualenv using python3 -m venv .

  2. Activate the virtualenv with . bin/activate

  3. Install pip-tools using: pip install pip-tools

  4. 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.

  5. If not already installed, install Homebrew: https://brew.sh/.

  6. Run brew update

  7. Install Redis locally on your mac: brew install redis

  8. Start redis locally using: brew services start redis

Start server:

python django_for_startups/manage.py runserver

Run tests:

python django_for_startups/manage.py test

Check for outdated root dependencies:

python scripts/list_outdated.py

About

Code for the book Django for Startups

License:MIT License


Languages

Language:Python 100.0%