Sunday, June 21, 2020

Re: Django Uploaded images not displayed in production

Actually me too i have the same problem, i have deployed django web app on a shared host with apache linux server, and am stuck on how to serve media files, static files like js, css, and static images not from database load well.

But the problem is that when i submit a form that has an imagefield with it, it throws an error message, "404" page not found.
If anyone can help me please.

On Sun, Jun 21, 2020, 21:23 Vishesh Mangla <manglavishesh64@gmail.com> wrote:

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 Riedlinger
Sent: 21 June 2020 23:40
To: Django users
Subject: Re: Django Uploaded images not displayed in production

 

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 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 admin so I can add my (new future) projects and only by admin they should be able to display automatically on my website with all the information and structure required.

Do you sugest changing the value of the imageField (upload_to="static/<appname>/my_desired_path) ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/33d4c599-135d-45d9-abbc-978e404e4f87o%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A68703DE-32D6-417B-AF0F-64EACA533FE0%40hxcore.ol.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP%3DJD9x7L7S9KniwHQ4etsjnCOfj70AizbZO-1z5WxqCbLpnsg%40mail.gmail.com.

No comments:

Post a Comment