For Mac OS
- install poetry
brew install poetry- use python 3.12
poetry env use 3.12- install packages
poetry installif you don't want to use poetry just install from requirements
- how to add new dependencies and update requirements.txt
poetry add package_name
poetry export -f requirements.txt --output requirements.txtFor Mac OS
- install posgresql
brew install memcached- run postgresql
brew services start memcachedFor Mac OS
- install posgresql
brew install postgresql@16- run postgresql
brew services start postgresql@16- create database
psql -U postgresCREATE USER cardist WITH PASSWORD 'ineedmoretime1!';
CREATE DATABASE card_deck;
GRANT ALL PRIVILEGES ON DATABASE card_deck TO cardist;
ALTER DATABASE card_deck OWNER TO cardist;- migrate
python manage.py migrate- create superuser
python manage.py createsuperuser