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 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 
>> exception.  But what I don't understand is why a GET request work.
>>
>> This is the trace for a POST request: https://paste.ee/p/sjq5s
>>
>>
> Some more details.
>
> I have the following main urlpatterns:
>
> urlpatterns = [
>     urls.path('mp/', urls.include('lpg.mperillo.urls')),
>     ]
>
> And in my application:
>
> urlpatterns = [
>     urls.path('bug/', views.bug, name='bug'),
>     urls.path('debug/', views.debug, name='debug')
>     ]
>
> When accessing https://fast-page.it/mp/bug/, Django tries to match the 
> path `bug` with the pattern `mp` and it fail, raising a 404 exception.
> This does not happen with a GET request or with a POST request without a 
> file upload.  Also, I can't reproduce this error on my system, but only on 
> the hosting server.
> I have a different Django application on a different account of the same 
> hosting company, and it works correctly.
>
> I originally found the problem in the Django admin, when trying to create 
> a model instance with a file field.
>
>
> Thanks
> Manlio Perillo 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/83a30de5-1f16-4694-88f8-d50e77844153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to