st4lk / django-solid-i18n-urls

[DEPRECATED] Use default language for urls without language prefix.
http://www.lexev.org/en/
Other
112 stars 29 forks source link

APPEND_SLASH not working #15

Open st4lk opened 9 years ago

st4lk commented 9 years ago

Such test fails for some reason with example project:

 def test_append_slash(self):
        response = self.client.get('/ru/about')  # no slash at the end
        self.assertEqual(response.status_code, 301)
        response = self.client.get(response['Location'])
        self._base_page_check(response, "ru", "about")

Tried with django 1.7.4

mehdipourfar commented 7 years ago

I've fixed that issue for myself by adding CommonMiddleware after SolidLocaleMiddleware.