Activate the virtual environment: source venv/bin/activate
install the requirements with: pip install -r requirements.txt
Start the Postgres shell
Start the Posgtgres shell with psql postgres from the command line
Create a user with: CREATE USER <yourNameHere> WITH PASSWORD '<yourPasswordHere>';
Save your password securely (use an environement variable or password manager)
Alter these connections params:
ALTER ROLE <yourNameHere> SET client_encoding TO 'utf8';ALTER ROLE <yourNameHere> SET default_transaction_isolation TO 'read committed';ALTER ROLE <yourNameHere> SET timezone TO 'UTC';
Grant your user access to the database: bonedate: GRANT ALL PRIVILEGES ON DATABASE bonedata TO <yourNameHere>;
Extra
The makemigrations command is responsible for creating new migrations based on the changes you have made to our models: python manage.py makemigrations
The migrate command will execute SQL commands: python manage.py migrate