Cannot upload media files on CPanel (using django)
问题 I am not able to upload my media files on Cpanel. Initially I was able to upload files but now it shows Error 404 URL Not Found. There is nothing wrong with my code or my url as it works fine on localhost. I have checked for permissions of directory in my CPanel File Manager (its 0755). I have specified + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) in my urls.py file. My settings.py is: MEDIA_ROOT = '/my/path/public_html/media' MEDIA_URL = '/media/' I am using Django=2.1 and