brew install postgres
brew install postgis
brew install gdal
brew install libgeoip
Open you db administrator (I use pgAdmin4) Open query tool and add the following
create extension postgis;
Then press run (for better instructions see my blog)
LOCAL_DB_NAME=name-of-the-database
LOCAL_DB_USER=db-user-name
LOCAL_DB_PASSWORD=db-password
LOCAL_DB_HOST=host-you-want-to-use
LOCAL_DB_PORT=post-you-want-to-use
python3 -m venv venv-location
source venv-location/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver