示例#1
0
    # Bookmarklet
    url(r'^accounts/logged_in.js$', IsLoggedInView.as_view(), {},
        name='is_logged_in.js'),

    (r'^crossdomain.xml$', 'django.views.static.serve',
     {'document_root': os.path.abspath(os.path.dirname(__file__)),
      'path': 'crossdomain.xml'}),

    url(r'^dashboard/migrate/materials/(?P<course_id>\d+)/$',
        MigrateMaterialsView.as_view(), {}, 'dashboard-migrate-materials'),
    url(r'^dashboard/migrate/$', MigrateCourseView.as_view(),
        {}, 'dashboard-migrate'),
    url(r'^dashboard/sources/', CourseManageSourcesView.as_view(),
        name='class-manage-sources'),
    url(r'^dashboard/settings/', CourseSettingsView.as_view(),
        name='course-settings'),

    # Discussion
    (r'^discussion/', include('mediathread.discussions.urls')),

    # External Collections
    url(r'^explore/redirect/(?P<collection_id>\d+)/$',
        RedirectToExternalCollectionView.as_view(),
        name='collection_redirect'),

    # Uploader
    url(r'^upload/redirect/(?P<collection_id>\d+)/$',
        RedirectToUploaderView.as_view(),
        name='uploader_redirect'),