Beispiel #1
0
    # static pages
    (r'^$', flatpage, {'url': '/'}),

    (r'^creators/?$', CreatorsListView.as_view()),
    (r'^creators/(?P<alpha>[a-z0]{1})/?$', CreatorsAlphaListView.as_view()),
    (r'^creator/(?P<pk>\d+)/?$', CreatorDetailView.as_view()),
    
    (r'^productions/?$', ProductionsListView.as_view()),
    (r'^productions/(?P<alpha>[a-z0]{1})/?$', ProductionsAlphaListView.as_view()),
    (r'^production/(?P<pk>\d+)/?$', ProductionDetailView.as_view()),
    
    (r'^writtenworks/?$', WorkRecordsListView.as_view()),
    (r'^writtenworks/(?P<alpha>[a-z0]{1})/?$', WorkRecordsAlphaListView.as_view()),
    (r'^writtenwork/(?P<pk>\d+)/?$', WorkRecordDetailView.as_view()),
    
    (r'^venues/?$', VenuesListView.as_view()),
    (r'^venues/(?P<alpha>[a-z0]{1})/?$', VenuesAlphaListView.as_view()),
    (r'^venue/(?P<pk>\d+)/?$', VenueDetailView.as_view()),
    
    (r'^digitalobjects/?$', DigitalObjectsListView.as_view()),
    (r'^digitalobjects/videos/?$', DigitalObjectsVideosListView.as_view()),
    (r'^digitalobjects/images/?$', DigitalObjectsImagesListView.as_view()),
    (r'^digitalobjects/types/?$', phys_types_list),
    (r'^digitalobjects/type/(\S+)/?$', DigitalObjectsTypeListView.as_view()),
    (r'^digitalobjects/collections/?$', collections_list),
    (r'^digitalobjects/collection/(\S+)/?$', DigitalObjectsCollectionListView.as_view()),
    (r'^digitalobject/(?P<pk>\d+)/?$', DigitalObjectDetailView.as_view()),
    
    # Set up i18n functions
    (r'^i18n/', include('django.conf.urls.i18n')),
Beispiel #2
0
 url(r'^creator/(?P<pk>\d+)/?$', CreatorDetailView.as_view(),
     name="creator_detail_view"),
 url(r'^productions/?$', ProductionsListView.as_view(),
     name="production_list_view"),
 url(r'^productions/(?P<alpha>[a-z0]{1})/?$', ProductionsAlphaListView.as_view(),
     name="production_alpha_list_view"),
 url(r'^production/(?P<pk>\d+)/?$', ProductionDetailView.as_view(),
     name="production_detail_view"),
 url(r'^writtenworks/?$', WorkRecordsListView.as_view(),
     name="workrecord_list_view"),
 url(r'^writtenworks/(?P<alpha>[a-z0]{1})/?$',
     WorkRecordsAlphaListView.as_view(),
     name="workrecord_alpha_list_view"),
 url(r'^writtenwork/(?P<pk>\d+)/?$', WorkRecordDetailView.as_view(),
     name="workrecord_detail_view"),
 url(r'^venues/?$', VenuesListView.as_view(),
     name="venue_list_view"),
 url(r'^venues/(?P<alpha>[a-z0]{1})/?$',
     VenuesAlphaListView.as_view(),
     name="venue_alpha_list_view"),
 url(r'^venue/(?P<pk>\d+)/?$', VenueDetailView.as_view(),
     name="venue_detail_view"),
 url(r'^digitalobjects/?$',
     DigitalObjectsListView.as_view(),
     name="digital_object_list_view"),
 url(r'^digitalobjects/videos/?$',
     DigitalObjectsVideosListView.as_view(),
     name="digital_object_video_list_view"),
 url(r'^digitalobjects/images/?$',
     DigitalObjectsImagesListView.as_view(),
     name="digital_object_image_list_view"),