I'm currently working on a toy project in Django.
Part of my app allows users to leave reviews. I'd like to take the title of the review and slugify it to create a url.
So, if a user writes a review called "The best thing ever!", the url would be something like: www.example.com/reviews/the-best-thing-ever
.
That's all well and good, but what is the best way to handle case where two users pick the same title? I don't want to make the title required to be unique.
I've thought about adding the review id in the url somewhere, but I'd like to avoid that extra info for any urls that don't collide.
Any ideas?