Trying to run pytest or coverage run -m pytest to test your Django code? The error is telling us that the code no longer knows how to find our settings module. Note that we are no longer using the manage.py command to deal with Django code and if you look at this file, one of…
All posts in python
How to install Python 3 on Mac using homebrew
tldr; install brew; brew install python Homebrew is a great installer for Mac and its main job is to make it easier to install packages. Step 1: Download Homebrew here “brew” hosts its package information here as “formulae“. Step 2: Use brew to install the latest version of Python $ brew install python –verbose Now you…
Installing Python and managing Python versions with pyenv (bonus venv)
Step 1: Meet your default python You are on Mac OS. When you run python in your terminal you see this. You have Python 2.7.10. This is your default python. You can do things like add > 8+8 Step 2: Meet your modules From your interpreter you can see your available modules by asking for “help”…
Levels of installing python
This is an opinionated route towards python management. Every computer may have its own set up. Level 0: “I just want to play with python” Method 1: Use and online REPL like this: https://repl.it/languages/python Level 1: “I want python on my computer” Download brew, use brew to download the latest version of python and go crazy.…