• Stars
    star
    131
  • Rank 274,273 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code for the book Django for Startups

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