Images at cPanel is not Displaying in Django

I have deployed my Django project on a Shared Hosting. I am using subdomain for that. My Project is working fine in my localhost.
And also I am able to get the media file but in my Shared Hosting, i am not able to get the media file. Shows error:

Not Found
The requested resource was not found on this server.

My Settings.py:

STATIC_URL = '/static/'

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static"),
]


MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')

And my urls.py:

urlpatterns += static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

The console error is looking like this picture.

Back to Top