On 5/12/2009 1:10 PM, Thierry wrote: > I have a table with the following names: > > id name > 1 Foo > 2 Foo goo > 3 Foo's goo > > I want to use the name to construct my url. I don't have a problem > constructing Foo: > > localhost/foo > > But how am I supposed to handle "Foo goo" and "Foo's goo"? Will I > need to create a 3rd column just to hold the url like the following: > > id name url > 1 Foo foo > 2 Foo goo foo-goo > 3 Foo's goo foos-goo > > I will also need that url to retrieve information on that entry from > the table. Can someone with a lot of experience in web dev confirm > that the above is the best way to handle this situation?
<http://docs.python.org/library/urllib.html#urllib.quote> -- George --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---