StevenWeir038 / Kennel39

A CRUD based booking site for a small dog grooming business
2 stars 2 forks source link

Testing Issue #5. Checking static folder is working on deployed site #25

Closed StevenWeir038 closed 2 years ago

StevenWeir038 commented 2 years ago

Any images stored in static/img/ folder should display when deployed.

Tried deleting the DISABLE_COLLECTSTATIC config var in Heroku Settings by clicking on the X. No effect.

StevenWeir038 commented 2 years ago

Any images stored in static/img/ folder should display when deployed. Remember to delete the DISABLE_COLLECTSTATIC config var in Heroku Settings by clicking on the X.

When I did deleted this config var and tried to redeploy, the build log stated python manage.py collectstatic --noinput.

This prompted a different approach to handling static files by installing the dotenv python package. From there i updated the requirements.txt file and settings.py and env.py files in the project before pushing to GitHub again.

To view code changes in env.py and settings.py files review commit 23ce21776978ef24d84bdd28bba75f977f5dd460