I want to make main categories on my site like:
/main1/page1
/main2/page2
/main3/page3
I would like to make those categories dynamically with a m2m . In that
case I can assign pages to one or more main categories.
I have a problem now with urls.py As far as I know I can only "catch"
one variable like:
(r'^main1/(.*)/$', view), In this way I have to add every main
category manually to urls.py
Is there a way to do something like: (r'^(.*)/(.*)/$', view), (I know
this doesn't work)
Or should I catch everything from the url and try to split the url in
the view?
(r'^(.*)$', view),
A consideration I have that I will end up having double content (which
is bad for Google). Is it also an option to remember the choice made
in a session, and render the menu on page load (through middleware)?
Rob
--
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?hl=en.