A base with settings how I like them.
% brew install python
Verify this works with python3 --version and python3 -m pip -V. You should see python 3.8 being used on both. If not, you may need to add /usr/bin to your PATH.
% python3 -m venv env
# This may take a second
% source env/bin/activate
# Now the prompt should look like this:
(env) %
% python3 -m pip install -r requirements.txt
Using a password manager or other cryptographically sound method to generate a secret key and add it to the environment. Save this secret key somewhere safe to reuse in your local environment.
% export SECRET_KEY="DADB0D"
% python3 manage.py migrate
% python3 manage.py runserver
Visit localhost:8000 to verify the server is running correctly.