I have a list with category names , e.g. cats = ["tv", "movie", "theater"].
I would like to write a url pattern to catch only URLs which contain one of the items in the list, such as:
url(r'^site/CATEGORY_NAME/$', 'mainsite.views.home'),
so that CATEGORY_NAME can only one one of the items in the list cats.
How can I do that?
Thanks, Meir