Re: Django Saving a form with Imagefield on shared host

2020-07-11 Thread Stanley Valentin
J'arrive pas à comprendre! Tu parles français. Si ça marche pas il est possible que tu a fait une erreur Le 15 juin 2020 14:55, "Kelvin Sajere" a écrit : > 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

Re: Django Saving a form with Imagefield on shared host

2020-07-11 Thread Mostaq mahmud
It's about Mod_Security issue. Contact to the hosting support and tell them to disable Mod_Security. On Thursday, June 18, 2020 at 11:30:30 AM UTC+6, MUGOYA DIHFAHSIH wrote: > > @Mangla, essentially what i want to do is to serve uploaded images on a > shared host through the media directory in

Re: Django Saving a form with Imagefield on shared host

2020-06-17 Thread MUGOYA DIHFAHSIH
@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

Re: Django Saving a form with Imagefield on shared host

2020-06-17 Thread Kelvin Sajere
If you indeed have your media folder where it’s supposed to be, then make sure in your settings file, you have specified that folder as your root folder for media. I don’t see your code, so this might be difficult to determine on my end. -- KeLLs -- You received this message because you are

RE: Django Saving a form with Imagefield on shared host

2020-06-17 Thread Vishesh Mangla
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 DIHFAHSIHSent: 14 June 2020 19:15To: Django usersSubject: Django Saving a form with

Re: Django Saving a form with Imagefield on shared host

2020-06-16 Thread MUGOYA DIHFAHSIH
Hey Kelvin thanks for your esteemed reply, i specified the media folder but i think there is something to do with apache and mod_wsgi so as to serve the static urls and the media files On Sunday, 14 June 2020 16:46:39 UTC+3, MUGOYA DIHFAHSIH wrote: > > I am working on django project and now i

Re: Django Saving a form with Imagefield on shared host

2020-06-15 Thread Kelvin Sajere
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

Django Saving a form with Imagefield on shared host

2020-06-14 Thread MUGOYA DIHFAHSIH
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