Becky139 / mutts-cuts

0 stars 3 forks source link

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

Closed Becky139 closed 1 year ago

Becky139 commented 1 year 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.

Becky139 commented 1 year 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 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 them to GitHub again.