Re: Django Uploaded images not displayed in production

2020-06-22 Thread MUGOYA DIHFAHSIH
thanks Anton, i will also give nginx a try but currently the client has a domain with namecheap with shared host plan and that is where he wants me to deploy the application but name cheap has apache web server On Sun, 21 Jun 2020 at 22:10, Anton Nyagolov wrote: > So guys I have found the probl

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 MUGOYA DIHFAHSIH
; > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Rob Riedlinger > *Sent: *21 June 2020 23:40 > *To: *Django users > *Subject: *Re: Django Uploaded images not displayed in production > > > > Check out this vid

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
If the issue is managing static files on the server simply installing Django-heroku saved me from all that trouble. Sent from Mail for Windows 10 From: Rob RiedlingerSent: 21 June 2020 23:40To: Django usersSubject: Re: Django Uploaded images not displayed in production Check out this video  https

Re: Django Uploaded images not displayed in production

2020-06-21 Thread Rob Riedlinger
Check out this video https://youtu.be/kBwhtEIXGII Denis talks about why this happens On Sunday, June 21, 2020 at 7:15:43 PM UTC+2, Anton Nyagolov wrote: > > 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

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
20 22:46To: Django usersSubject: Re: Django Uploaded images not displayed in production 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

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

RE: Django Uploaded images not displayed in production

2020-06-21 Thread Vishesh Mangla
Hi, first of all welcome on this group. Secondly you can also try https://webchat.freenode.net/  on the #django channel but you first need to register there by asking on #freenode channel. Regarding your problem, images are static files and you should put them in static//your_desired_path to be det