You shouldn't have to hard code any names. That's what's great about Django's url patterns. Just override Satchmo's URL patterns, give them the same names as Satchmo gives them, point them to the same views, and you should be pretty close to being okay. Satchmo usually makes some good use of Django's name property for urlpatterns.
/category_slug/product_slug -> product_view /category_slug -> category_view On Fri, Oct 2, 2009 at 4:03 PM, lifewithryan <[email protected]> wrote: > > I have a client that doesn't like the fact that the urls read / > category/some_category and /product/some_product -- > > they'd like it to be /some_category and /some_category/some_product. > > My thought is that beginning to override the URL structure of Satchmo > is asking for trouble. In my mind, if you start doing that, you'd > basically need to hard-code category names into the urls.py file, or > write your own views to pull the necessary information from the url. > > Am I just being paranoid and this is brain dead simple? > > I figure the structure is there for a reason and changing that > structure will open up a can of worms that you probably really don't > want to go down. > > Thoughts? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo 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/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
