heroku login
heroku container:login
heroku create
heroku container:push web --app <app_name>
heroku container:release web --app <app_name>
-
In settings.py -
DEBUG = False
-
Run:
python manage.py collectstatic
-
Install whitenoise:
pip install whitenoise
-
Add configuration to serve statics with whitenoise in settings.py
-
Run:
heroku container: push web --app <app_name>
-
Run:
heroku container:release web --app <app_name>