--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%40googlegroups.com.
One thing that can be done is to save the image as a base64 string in the database. https://stackoverflow.com/questions/3715493/encoding-an-image-file-with-base64
Sent from Mail for Windows 10
--
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3F4C1D42-FB11-49A2-8A6E-BF990EE847AD%40hxcore.ol.
@Mangla, essentially what i want to do is to serve uploaded images on a shared host through the media directory in my project root. I have deployed the web app the static files such as css and images are working fine, but when i try to submit a form that has imagefield into the database, it throws 404 error. I know it has to deal with the Aoache web server and the mod_wsgi but how?
On Wed, 17 Jun 2020 at 10:06, Vishesh Mangla <manglav...@gmail.com> wrote:
One thing that can be done is to save the image as a base64 string in the database. https://stackoverflow.com/questions/3715493/encoding-an-image-file-with-base64
Sent from Mail for Windows 10
From: MUGOYA DIHFAHSIH
Sent: 14 June 2020 19:15
To: Django users
Subject: Django Saving a form with Imagefield on shared host
I am working on django project and now i have deployed it with Namecheap
When i submit a form that does not have an ImageField, the form submits successfully on the shared host
but when i submit a form with one of the fields ImageField, it raises 404 error.
but on the localhost, the forms work perfectly.
what can i do to submit such forms on a shared host.
Thanks.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%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...@googlegroups.com.
Did you specify a folder to use for media when you deployed your app? If so, then make sure it's where you are supposed to have your media folder. If it's a single hosting, then it should be in the public_html folder, but on multiple hosting, it should be in the domain-specific folder. I never really host my media on NameCheap or any other hosting for that matter though. I use either AWS or GOOGLE CLOUD SERVICES for that.
On Sun, Jun 14, 2020 at 2:46 PM MUGOYA DIHFAHSIH <dihfa...@gmail.com> wrote:
I am working on django project and now i have deployed it with Namecheap--When i submit a form that does not have an ImageField, the form submits successfully on the shared hostbut when i submit a form with one of the fields ImageField, it raises 404 error.but on the localhost, the forms work perfectly.what can i do to submit such forms on a shared host.Thanks.
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/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%40googlegroups.com.
--KeLLs--
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/CADYqDX2jnwmxOFs5Vz2fnezxs2KMPLh5uh6XVNrz1U36BuBN1g%40mail.gmail.com.