#27063: Regex url routing + Localization (prefix_default_language)
-------------------------------------+-------------------------------------
     Reporter:  keithhackbarth       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  1.10
  Internationalization               |
     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
-------------------------------------+-------------------------------------

Comment (by keithhackbarth):

 @urbaniak - Not sure I understand the feedback.

 Using the below

 {{{
 urlpatterns += i18n_patterns(
     url(r'^(?P<city>[\w-]+-parking)', CityView.as_view()),
     prefix_default_language=False
 )
 }}}

 Still reproduces the same two issues. I understand that in theory, the
 language prefix is separated from the rest of the url with / instead of -.
 But in practice, with a regex, this does not appear to be the case?

 Thanks for your help!

--
Ticket URL: <https://code.djangoproject.com/ticket/27063#comment:4>
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/072.cbd9538a18ba1d278f0b4d745f8b9e28%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to