I'm having two issues with "prefix_default_language" that I was hoping to 
shed some insight on. My URL conf is as follows:

urlpatterns += i18n_patterns(
    url(r'^(?P<city>.+-parking)/?$', CityView.as_view()),
    prefix_default_language=False
)

Issue #1: Prefixes

If a city that matches my regex ALSO begins with a language, it translates 
that language. For example: /de-moines-parking translates into German. I 
would expect /de-moines-parking to be in english and /de/de-moines-parking 
to be in German.

Issue #2: Stacking

Currently, the il8n_patterns is also allowing language tags to stack. For 
example, /de/fr/it/de-moines-parking is loading a successful page instead 
of a 404.

Any insight? Is this a bug or am I missing something obvious in my regex?

Thanks,

Keith


 

-- 
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/b893cd4f-49bf-4a96-8c94-2a717475d05c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to