コード例 #1
0
 path('accounts/is_logged_in/',
      IsLoggedInDataView.as_view(), {},
      name='is_logged_in'),
 path('bookmarklet_migration/',
      BookmarkletMigrationView.as_view(), {},
      name='bookmarklet_migration'),
 path(
     'crossdomain.xml', django.views.static.serve, {
         'document_root': os.path.join(os.path.dirname(__file__),
                                       '../media/'),
         'path': 'crossdomain.xml'
     }),
 path('dashboard/migrate/materials/<int:course_id>/',
      MigrateMaterialsView.as_view(), {}, 'dashboard-migrate-materials'),
 path('course/<int:course_pk>/dashboard/migrate/',
      MigrateCourseView.as_view(), {}, 'dashboard-migrate'),
 path('dashboard/roster/promote/',
      CoursePromoteUserView.as_view(),
      name='course-roster-promote'),
 path('dashboard/roster/demote/',
      CourseDemoteUserView.as_view(),
      name='course-roster-demote'),
 path('dashboard/roster/remove/',
      CourseRemoveUserView.as_view(),
      name='course-roster-remove'),
 path('dashboard/roster/add/uni/',
      CourseAddUserByUNIView.as_view(),
      name='course-roster-add-uni'),
 path('dashboard/roster/add/email/',
      CourseInviteUserByEmailView.as_view(),
      name='course-roster-invite-email'),
コード例 #2
0
ファイル: urls.py プロジェクト: Bhanditz/mediathread
    (r'^course/request/', RequestCourseView.as_view()),

    # Courseaffils
    url(r'^accounts/logged_in.js$',
        'courseaffils.views.is_logged_in',
        name='is_logged_in.js'),
    url(r'^nocache/\w+/accounts/logged_in.js$',
        'courseaffils.views.is_logged_in',
        name='nocache-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/',
        'mediathread.main.views.class_manage_sources',
        name="class-manage-sources"),
    url(r'^dashboard/settings/',
        'mediathread.main.views.class_settings',
        name="class-settings"),

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

    # Manage Sources
    url(r'^explore/redirect/$',
        'mediathread.assetmgr.views.source_redirect',
        name="source_redirect"),
コード例 #3
0
ファイル: urls.py プロジェクト: appsembler/mediathread
     TemplateView.as_view(template_name="main/course_request_success.html")),
    (r'^course/request/', RequestCourseView.as_view()),

    # Courseaffils
    url(r'^accounts/logged_in.js$', 'courseaffils.views.is_logged_in',
        name='is_logged_in.js'),
    url(r'^nocache/\w+/accounts/logged_in.js$',
        'courseaffils.views.is_logged_in', name='nocache-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/',
        'mediathread.main.views.class_manage_sources',
        name="class-manage-sources"),
    url(r'^dashboard/settings/',
        'mediathread.main.views.class_settings',
        name="class-settings"),

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

    # Manage Sources
    url(r'^explore/redirect/$',
        'mediathread.assetmgr.views.source_redirect',
        name="source_redirect"),