Brian Neal wrote: > I might have found my answer. I was looking at the list of > incompatible changes and found this: > > http://code.djangoproject.com/changeset/8760 > > Which led me to this: > > http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse > > I quote from the docs: > > "The reverse() function can reverse a large variety of regular > expression patterns for URLs, but not every possible one. The main > restriction at the moment is that the pattern cannot contain > alternative choices using the vertical bar ("|") character. You can > quite happily use such patterns for matching against incoming URLs and > sending them off to views, but you cannot reverse such patterns." > > This is exactly what I am trying to do. My pattern is using the | > alternation. So apparently the url tag eventually calls reverse and it > is failing to find my pattern. > In which case a solution would appear to be to replace each alternate with a separate pattern. It might seem distatsteful, but it should work ...
regards Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

