コード例 #1
0
ファイル: urls.py プロジェクト: violetcrown/romeu
    # Example:
    # (r'^ctda/', include('ctda.foo.urls')),

    # 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()),
    
コード例 #2
0
ファイル: urls.py プロジェクト: umdsp/romeu
 url(r'^creators/?$', CreatorsListView.as_view(),
     name="creator_list_view"),
 url(r'^creators/(?P<alpha>[a-z0]{1})/?$', CreatorsAlphaListView.as_view(),
     name="creator_alpha_list_view"),
 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(),