python3 -m venv venv-api
source venv-api/bin/activate
pip install -r requirements.txt
python manage.py createsuperuser
db.sqlite3
Then, create an .env
file and add the following to connect your local database
LOCAL_DB_NAME=db-name
LOCAL_DB_USER=
LOCAL_DB_PASSWORD=
LOCAL_DB_HOST=127.0.0.1
LOCAL_DB_PORT=5432
python manage.py makemigrations
python manage.py migrate
python manage.py runserver