Re: Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
So guys I have found the problem. My Nginx server was only serving static files but not media ones, I have probably forgot about it. My Nginx settings were: The only thing I had to do is add a location for the media folder: @MUGOYA DIHFAHSIH At the begging of setting the server I also used apa

Re: Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
Thanks I will check out the group too for future reference and etc. Those images are uploaded to a database and are part of a model. I iterate through all the object and for each object I print some information including the images, therefore I cannot specify only one specific image. I use admi

Django Uploaded images not displayed in production

2020-06-21 Thread Anton Nyagolov
Hello everyone, I just discovered this group through Google.I couldn't get any help on stack overflow and hopefully someone here can help. I have deployed a Django App on a Ubuntu server for the first time using Nginx and gunicorn. Before deployment, I used port 8000 to test if everything runs