Help on Serving Images in Django while using Render

Hello Team, I am on my learning journey (Python / Django), I have tried going through the previously asked questions but I am not getting enough light.

I implemented the guiddlines in the doc however I am using a free instance.

CSS is working well but the images are not displaying.

I am getting something wrong or simply its because I am on a free instance.

Below is what I implemented.

STATIC_URL = “/static/”

if not DEBUG:

STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")

STATICFILES_STORAGE = “whitenoise.storage.CompressedManifestStaticFilesStorage”

Any support will be appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.