#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         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 This tests fails:

 {{{
 class LocaleMiddlewareTest(TestCase):

     def test_locale_middleware_redirects_to_localized_url(self):
         resp = self.client.get("/")
         self.assertRedirects(resp, "/fr/")
 }}}

 While this one uses the LocaleMiddleware:

 {{{
 class LocaleMiddlewareTest(TestCase):

     def test_locale_middleware_redirects_to_localized_url(self):
         resp = self.client.get("/home")
         self.assertRedirects(resp, "/fr/home")
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29842>
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/048.834c647a9920a3c67c669f54c4daffc7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to