Re: 404 error while loading uploaded image when debug is False

2019-03-21 Thread Mohammad Etemaddar
In production , we serve static files (like images) stright from httpd like apache, and we do not call django to serve them. But in testing while run django test server, we use static paths in urls.py to serve them, Maybe you have added mediaurls to your urlpatterns in urls.py conditionally (when

404 error while loading uploaded image when debug is False

2019-03-21 Thread mayank dubey
Hii there, I am not able to load images which have been uploaded through the admin portal on my Django site if I set debug = false. While when debug = true, images are easily loaded. I am not able to understand what is the problem, please help me out. Thank you, M -- You received this message b