Forums

I can't display my uploaded images

Hi, I'm stucked with my app, everything works fine however when I try to upload the images, it doesn't appear it just show the image icon but nothing else happens. I don't get why in my local all images I have uploaded appear but not in my deployed app.

My media settings are:

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS=(os.path.join(BASE_DIR,'SistemaCarros/static'),)
LOGIN_REDIRECT_URL='dashboard:dashboard'
LOGIN_URL='login'
MEDIA_ROOT=os.path.join(BASE_DIR,'media/uploads')
MEDIA_URL='/media/uploads/'

In python anywhere platform settings I have this:

/media/     /home/Project/ws2022/media/uploads   
/static/            /home/Project/ws2022/staticfiles/

Could you tell me what happens?

We have a help page for that.