from django.conf.urls.defaults import patterns, include, url
from hansard.views import IndexView, SittingView

urlpatterns = patterns('hansard.views',
    url( r'^$', IndexView.as_view(), name="index" ),

    # not the final URL structure - but something to start work with
    url( r'^sitting/(?P<pk>\d+)/', SittingView.as_view(), name="sitting_view" ),
    
    # views for a specific person
    url( r'^person/(?P<slug>[\w\-]+)/summary/', 'person_summary', name='person_summary' ),
    # url( r'^person/(?P<slug>[\w\-]+)/',         'person_entries', name='person_entries' ),

)

@@ -266,24 +266,26 @@
 ork with%0A   
+ #
  url( r'%5Esit
@@ -349,16 +349,386 @@
 view%22 ),
+%0A%0A    # Try to make the url human readable%0A    # sitting/%3Cvenue%3E/%3Cstart_date%3E%5B-%3Cstart_time%3E%5D/%0A    # sitting/main_chamber/2011-12-03%0A    # sitting/main_chamber/2011-12-03-14-00-00%0A    url(%0A        r'%5Esitting/(?P%3Cvenue_slug%3E%5B%5Cw%5C-%5D+)/(?P%3Cstart_date_and_time%3E%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D(?:-%5Cd%7B2%7D-%5Cd%7B2%7D-%5Cd%7B2%7D))?',%0A        SittingView.as_view(),%0A        name=%22sitting_view%22%0A    ),%0A%0A    
 %0A    %0A  

Define the url structure