Hi Julian, On Mon, 18 Mar 2013, julianb wrote:
imagine the following use case: You build an online store where you have sorted products into several categories and maybe associated an occasion. Now you want to build URLs. So the URL schema that all of the store's owners agree on is: /<product-slug>/ /<category-slug>/ /<occasion-slug>/ Look simple. Because product slugs should generally be different to category slugs and occasions, you expect no clashes here. And you don't want to bloat the URLs by putting product/ and category/ in there. And you also do not want to resort making it look cryptic by having just /p/<product-slug>/ and so on. Then it comes to Django. How do you do that?
I put the type in the URL to make it obvious. That doesn't harm SEO and makes your URL routing clearer. For example:
/product/<product-slug>/ /category/<category-slug>/ /occasion/<occasion-slug>/ But that's getting into django-users territory. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Future Business, Cam City FC, Milton Rd, Cambridge, CB4 1UY, UK Aptivate is a not-for-profit company registered in England and Wales with company number 04980791. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.