Forums

Images do not dispaly

In GitHub, my images are located in username/project/abc/abc/abcapp/static/images

After deployment, everything worked fine except for images that did not display. The error log is:

https://www.pythonanywhere.com/user/siyama/files/var/log/siyama.pythonanywhere.com.error.log

I have run the command:

python manage.py collectstatic

in bash for various folder levels yet images do not appear in the frontend.

In settings.py I added:

import os

STATIC_ROOT = os.path.join(BASE_DIR, 'images')

still images do not appear. How do I resolve this?

[formatted by admin]

Resolved.

I followed this video tutorial

https://www.youtube.com/watch?v=uCKZr9wddNw

Glad to hear that you got that working!