I think this should be fairly simple. I'm using Django Mezzanine CMS. I've created a page called "Calendar", and I have a page_processor that handles it. It takes a city/state argument like so:
http://localhost:8000/calendar/?city=Somerville,MA
What I would like instead is something like this:
http://localhost:8000/calendar/MA/Somerville
In my urls.py I have this:
url(r'^calendar/(?P<state>\w+$)', "mezzanine.pages.views.page", name="calendar"),
url(r'^calendar/(?P<state>\w+)/(?P<city>\w+)', "mezzanine.pages.views.page", name="calendar"),
also for good measure:
url(r"^calendar/(.*)", "mezzanine.pages.views.page", name="calendar"),
But I'm getting a 404. How do I map this?
TIA, Joel