Re: 404 error when posting a multipart/form-data form

2019-04-24 Thread Manlio Perillo
On Thursday, March 21, 2019 at 10:28:30 AM UTC+1, Manlio Perillo wrote: > > I have a Django application that works perfectly fine both on my PC and on > a hosting system with CloudLinux and Passenger. > However when I added a form with a file field, I started to get 404 errors > on POST. > > I tr

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 8:35:13 PM UTC+1, Raffaele Salmaso wrote: > > On Thu, Mar 21, 2019 at 2:42 PM Manlio Perillo > wrote: > >> The view code is here: >> https://gist.github.com/perillo/2f828209cea84ff8c753f6f2524119f1 >> > I d > Because I have remove every extra components. I removed a

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Raffaele Salmaso
On Thu, Mar 21, 2019 at 2:42 PM Manlio Perillo wrote: > The view code is here: > https://gist.github.com/perillo/2f828209cea84ff8c753f6f2524119f1 > I don't see the {% csrf_token %} in the template -- | Raffaele Salmaso | https://salmaso.org | https://bitbucket.org/rsalmaso | https://github.com/

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Marcio Bernardes
Hey Manlio make sure to change the action option in the form html, use something like {% url ‘url_name’ %} there. Do not use this point path. Cheers! Sent from my iPhone > On 22. Mar 2019, at 16:09, Mohammad Etemaddar > wrote: > > I'm not sure about this, but I think maybe it would be about

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Mohammad Etemaddar
I'm not sure about this, but I think maybe it would be about your Django bug. Have you updated your Django? On Friday, March 22, 2019 at 7:37:14 PM UTC+4:30, Manlio Perillo wrote: > > On Friday, March 22, 2019 at 3:23:32 PM UTC+1, Manlio Perillo wrote: >> >> On Friday, March 22, 2019 at 1:28:55 P

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 3:23:32 PM UTC+1, Manlio Perillo wrote: > > On Friday, March 22, 2019 at 1:28:55 PM UTC+1, Hamady Medvall wrote: >> >> You have to add the path /bug in URLConfig >> >> > A GET request to /mp/bug/ does not return an error, only a POST request > and *only* when using a f

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 1:28:55 PM UTC+1, Hamady Medvall wrote: > > You have to add the path /bug in URLConfig > > A GET request to /mp/bug/ does not return an error, only a POST request and *only* when using a file upload. >From the trace I see that it's the URL resolver that raises the 404

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Hamady Medvall
You have to add the path /bug in URLConfig On Fri, Mar 22, 2019 at 10:45 AM Manlio Perillo wrote: > On Thursday, March 21, 2019 at 2:42:31 PM UTC+1, Manlio Perillo wrote: >> >> On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar >> wrote: >>> >>> Can you send your view here? >>>

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Thursday, March 21, 2019 at 2:42:31 PM UTC+1, Manlio Perillo wrote: > > On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar wrote: >> >> Can you send your view here? >> >> > Here is the URL that reproduce the problem: > https://fast-page.it/mp/bug/ > > and here is the URL that p

Re: 404 error when posting a multipart/form-data form

2019-03-21 Thread Manlio Perillo
On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar wrote: > > Can you send your view here? > > Here is the URL that reproduce the problem: https://fast-page.it/mp/bug/ and here is the URL that prints the Django environment: https://fast-page.it/mp/debug/ The view code is here: h

Re: 404 error when posting a multipart/form-data form

2019-03-21 Thread Mohammad Etemaddar
Can you send your view here? On Thu, 21 Mar 2019 12:58 Manlio Perillo, wrote: > I have a Django application that works perfectly fine both on my PC and on > a hosting system with CloudLinux and Passenger. > However when I added a form with a file field, I started to get 404 errors > on POST. > >

404 error when posting a multipart/form-data form

2019-03-21 Thread Manlio Perillo
I have a Django application that works perfectly fine both on my PC and on a hosting system with CloudLinux and Passenger. However when I added a form with a file field, I started to get 404 errors on POST. I tried to remove all the middleware, but the problem is still here. The error message sa