#29842: For some reason self.client.get("/") return a Resolve404 error even with
the LocaleMiddleware
-------------------------------+--------------------------------------
     Reporter:  Rémy Hubscher  |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  2.1
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Rémy Hubscher):

 * status:  closed => new
 * resolution:  invalid =>


Comment:

 You are too quick for me, I didn't had time to elaborate.

 Initially I thought this was a bug with the Django Test Client so I landed
 the code but it also happened in real life.

 I was planning to create a pull-request with a failing test but you closed
 the issue too quickly and since a pull-request need to be linked to an
 issue I created the issue first.


 The minimum setup to reproduce is to use the LocaleMiddleware with the
 following urls.py file.


 {{{
 urlpatterns = [
      path("chefclub-admin/", admin.site.urls),
     path(
         "chefclub-admin", RedirectView.as_view(url="chefclub-admin/",
 query_string=True)
     ),
 ]

 urlpatterns += i18n_patterns(
     path("", views.index, name="index"),
 )
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29842#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.aa70fc29a51abda484ce93bdf313b119%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to