- Django
- Docker
- https://devcenter.heroku.com/articles/heroku-cli-commands
- Morning Lecture
clone down template
rename .env_sample to .env
docker compose run web bash
- copy and paste/type
python -c 'import secrets; print(secrets:token_urlsafe()
- Grab the key, update .env file with secret_key
run docker compose up
docker compose run web bash
python manage.py showmigrations
docker compose up --build
python manage.py migrate
python manage.py runserver
python manage.py startapp <app name>
python manage.py makemigrations <app name>
python manage.py migrate
python manage.py createsuperuser
UserName: <admin name>
password: <password>
python manage.py runserver
- Set up Heroku with environment variables in settings > config vars
- complete acp to main
heroku apps:create <project repo name>
heroku stack:set container
git push heroku main
heroku restart
# to quickly restart the app