I'm building a site for restaurants, like a yellow pages.
I wanna provide listing based in state / city /zones. Some citys in
Colombia are "MedellĂn", "Santa Marta" and so on...
So, the url are transformed to Medell%C3%ADn and Santa%20Marta.
Easy, I think... in the urls:
(r'^(?P<depto>[a-zA-Z0-9%\-]+)/(?P<city>[a-zA-Z0-9%\-]+)/$',
'restaurant.views.byCity' ),
to match depto and city.
I test this in the interactive mode:
re.match(r'^(?P<depto>[a-zA-Z0-9%\-]+)/(?P<city>[a-zA-Z0-9%\-]+)/$',r'a/Bogot%C3%A1/').groups()
>>('a', 'Bogot%C3%A1')
However, the django site not can found this...
Page not found (404)
I don't find another regular expression that work fine....
Any idea?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---