Exemplo n.º 1
0
urlpatterns = patterns(
    '',
    (r'^$', 'mediathread.main.views.triple_homepage'),  # Homepage
    (r'^admin/', admin.site.urls),

    # API - JSON rendering layers. Half hand-written, half-straight tasty=pie
    (r'^api/asset/user/(?P<record_owner_name>\w[^/]*)/$',
     AssetCollectionView.as_view(), {}, 'assets-by-user'),
    (r'^api/asset/(?P<asset_id>\d+)/$', AssetDetailView.as_view(), {},
     'asset-detail'),
    (r'^api/asset/$', AssetCollectionView.as_view(), {}, 'assets-by-course'),
    url(r'^api/user/courses$',
        'courseaffils.views.course_list_query',
        name='api-user-courses'),
    (r'^api/tag/$', TagCollectionView.as_view(), {}),
    (r'^api/project/user/(?P<record_owner_name>\w[^/]*)/$',
     ProjectCollectionView.as_view(), {}, 'project-by-user'),
    (r'^api/project/(?P<project_id>\d+)/$', ProjectDetailView.as_view(), {},
     'asset-detail'),
    (r'^api/project/$', ProjectCollectionView.as_view(), {}),
    (r'^api', include(tastypie_api.urls)),

    # Collections Space
    (r'^asset/', include('mediathread.assetmgr.urls')),
    auth_urls,  # see above

    # Bookmarklet + cache defeating
    url(r'^bookmarklets/(?P<path>analyze.js)$',
        'django.views.static.serve', {'document_root': bookmarklet_root},
        name='analyze-bookmarklet'),
Exemplo n.º 2
0
         name='course-invite-complete'),
    path('accounts/register/',
         RegistrationView.as_view(form_class=CustomRegistrationForm),
         name='registration_register'),
    path('accounts/', include('registration.backends.default.urls')),

    # API - JSON rendering layers. Half hand-written, half-straight tasty=pie
    path('api/asset/user/<slug:record_owner_name>/',
         AssetCollectionView.as_view(), {}, 'assets-by-user'),
    path('api/asset/<int:asset_id>/', AssetDetailView.as_view(), {},
         'asset-detail'),
    path('api/asset/', AssetCollectionView.as_view(), {}, 'assets-by-course'),
    path('api/user/courses',
         courseaffils.views.course_list_query,
         name='api-user-courses'),
    path('api/tag/', TagCollectionView.as_view(), {}, 'tag-collection-view'),
    path('api/project/user/<slug:record_owner_name>/',
         ProjectCollectionView.as_view(), {}, 'project-by-user'),
    path('api/project/<int:project_id>/<int:asset_id>/',
         ProjectItemView.as_view(), {}, 'project-item-view'),
    path('api/project/<int:project_id>/', ProjectDetailView.as_view(), {},
         'asset-detail'),
    path('api/project/', ProjectCollectionView.as_view(), {}),
    path('api', include(tastypie_api.urls)),

    # Collections Space
    path('asset/', include('mediathread.assetmgr.urls')),
    path('sequence/', include('mediathread.sequence.urls')),
    auth_urls,  # see above

    # Bookmarklet + cache defeating
Exemplo n.º 3
0
    url(r'^accounts/register/$',
        RegistrationView.as_view(form_class=CustomRegistrationForm),
        name='registration_register'),
    url(r'^accounts/', include('registration.backends.default.urls')),

    # API - JSON rendering layers. Half hand-written, half-straight tasty=pie
    url(r'^api/asset/user/(?P<record_owner_name>\w[^/]*)/$',
        AssetCollectionView.as_view(), {}, 'assets-by-user'),
    url(r'^api/asset/(?P<asset_id>\d+)/$', AssetDetailView.as_view(),
        {}, 'asset-detail'),
    url(r'^api/asset/$', AssetCollectionView.as_view(), {},
        'assets-by-course'),
    url(r'^api/user/courses$', courseaffils.views.course_list_query,
        name='api-user-courses'),
    url(r'^api/tag/$', TagCollectionView.as_view(), {}, 'tag-collection-view'),
    url(r'^api/project/user/(?P<record_owner_name>\w[^/]*)/$',
        ProjectCollectionView.as_view(), {}, 'project-by-user'),
    url(r'^api/project/(?P<project_id>\d+)/(?P<asset_id>\d+)/$',
        ProjectItemView.as_view(), {}, 'project-item-view'),
    url(r'^api/project/(?P<project_id>\d+)/$', ProjectDetailView.as_view(),
        {}, 'asset-detail'),
    url(r'^api/project/$', ProjectCollectionView.as_view(), {}),
    url(r'^api', include(tastypie_api.urls)),

    # Collections Space
    url(r'^asset/', include('mediathread.assetmgr.urls')),

    url(r'^sequence/', include('mediathread.sequence.urls')),

    auth_urls,  # see above
Exemplo n.º 4
0
urlpatterns = patterns(
    '',

    (r'^$', 'mediathread.main.views.triple_homepage'),  # Homepage

    (r'^admin/', admin.site.urls),

    # API - JSON rendering layers. Half hand-written, half-straight tasty=pie
    (r'^api/asset/user/(?P<record_owner_name>\w[^/]*)/$',
     AssetCollectionView.as_view(), {}, 'assets-by-user'),
    (r'^api/asset/(?P<asset_id>\d+)/$', AssetDetailView.as_view(),
     {}, 'asset-detail'),
    (r'^api/asset/$', AssetCollectionView.as_view(), {}, 'assets-by-course'),
    url(r'^api/user/courses$', 'courseaffils.views.course_list_query',
        name='api-user-courses'),
    (r'^api/tag/$', TagCollectionView.as_view(), {}),
    (r'^api/project/user/(?P<record_owner_name>\w[^/]*)/$',
     ProjectCollectionView.as_view(), {}, 'project-by-user'),
    (r'^api/project/(?P<project_id>\d+)/$', ProjectDetailView.as_view(),
     {}, 'asset-detail'),
    (r'^api/project/$', ProjectCollectionView.as_view(), {}),
    (r'^api', include(tastypie_api.urls)),

    # Collections Space
    (r'^asset/', include('mediathread.assetmgr.urls')),

    auth_urls,  # see above

    # Bookmarklet + cache defeating
    url(r'^bookmarklets/(?P<path>analyze.js)$', 'django.views.static.serve',
        {'document_root': bookmarklet_root}, name='analyze-bookmarklet'),
Exemplo n.º 5
0
    url(r'^accounts/register/$',
        RegistrationView.as_view(form_class=CustomRegistrationForm),
        name='registration_register'),
    url(r'^accounts/', include('registration.backends.default.urls')),

    # API - JSON rendering layers. Half hand-written, half-straight tasty=pie
    url(r'^api/asset/user/(?P<record_owner_name>\w[^/]*)/$',
        AssetCollectionView.as_view(), {}, 'assets-by-user'),
    url(r'^api/asset/(?P<asset_id>\d+)/$', AssetDetailView.as_view(), {},
        'asset-detail'),
    url(r'^api/asset/$', AssetCollectionView.as_view(), {},
        'assets-by-course'),
    url(r'^api/user/courses$',
        courseaffils.views.course_list_query,
        name='api-user-courses'),
    url(r'^api/tag/$', TagCollectionView.as_view(), {}, 'tag-collection-view'),
    url(r'^api/project/user/(?P<record_owner_name>\w[^/]*)/$',
        ProjectCollectionView.as_view(), {}, 'project-by-user'),
    url(r'^api/project/(?P<project_id>\d+)/(?P<asset_id>\d+)/$',
        ProjectItemView.as_view(), {}, 'project-item-view'),
    url(r'^api/project/(?P<project_id>\d+)/$', ProjectDetailView.as_view(), {},
        'asset-detail'),
    url(r'^api/project/$', ProjectCollectionView.as_view(), {}),
    url(r'^api', include(tastypie_api.urls)),

    # Collections Space
    url(r'^asset/', include('mediathread.assetmgr.urls')),
    url(r'^sequence/', include('mediathread.sequence.urls')),
    auth_urls,  # see above

    # Bookmarklet + cache defeating