urlpatterns = patterns('devilry.apps.student', url(r'^$', login_required(MainView.as_view()), name='student'), url(r'^add-delivery/(?P<assignmentgroupid>\d+)$', login_required(AddDeliveryView.as_view()), name='add-delivery'), url(r'^add-delivery/fileupload/(?P<assignmentgroupid>\d+)$', login_required(FileUploadView.as_view()), name='file-upload-id'), url(r'^add-delivery/fileupload/(?P<assignmentgroupid>\d+)$', login_required(FileUploadView.as_view()), name='file-upload'), url(r'^assignmentgroup/(?P<assignmentgroupid>\d+)$', login_required(AssignmentGroupView.as_view()), name='student-show-assignmentgroup'), url(r'^show-delivery/(?P<deliveryid>\d+)$', login_required(ShowDeliveryView.as_view()), name='show-delivery'), url(r'^show-delivery/filedownload/(?P<filemetaid>\d+)$', login_required(FileDownloadView.as_view()), name='file-download'), url(r'^show-delivery/compressedfiledownload/(?P<deliveryid>\d+)$', login_required(CompressedFileDownloadView.as_view()), name='compressed-file-download'), url(r'^show-delivery/tarfiledownload/(?P<deliveryid>\d+)$', login_required(TarFileDownloadView.as_view()), name='tar-file-download'), ) urlpatterns += student_restful
from django.conf.urls.defaults import * from views import FileDownloadView, FileHighlightView, FileRawView, PasteDeleteView urlpatterns = patterns( "pastebin.views", url(r"^$", "create", name="paste_create"), url(r"^update_session/$", "update_session"), url(r"^(?P<pk>\w+)/$", "detail", name="paste_detail"), url(r"^(?P<pk>\w+)/delete/$", PasteDeleteView.as_view(), name="paste_delete"), url(r"^(?P<paste_pk>\w+)/raw/(?P<file_pk>\d+)/$", FileRawView.as_view(), name="file_raw"), url(r"^(?P<paste_pk>\w+)/download/(?P<file_pk>\d+)/$", FileDownloadView.as_view(), name="file-download"), url( r"^highlight/(?P<paste_pk>\w+)/(?P<file_pk>\d+)/(?P<language>[\w-]+)/$", FileHighlightView.as_view(), name="file-highlight", ), )
AssignmentGroupView, FileDownloadView, ShowDeliveryView, CompressedFileDownloadView) urlpatterns = patterns( 'devilry.apps.student', url(r'^$', login_required(MainView.as_view()), name='student'), url(r'^add-delivery/(?P<assignmentgroupid>\d+)$', login_required(AddDeliveryView.as_view()), name='add-delivery'), url(r'^add-delivery/fileupload/(?P<assignmentgroupid>\d+)$', forbidden_if_not_authenticated(FileUploadView.as_view()), name='file-upload'), url(r'^assignmentgroup/(?P<assignmentgroupid>\d+)$', login_required(AssignmentGroupView.as_view()), name='student-show-assignmentgroup'), url(r'^show-delivery/(?P<deliveryid>\d+)$', login_required(ShowDeliveryView.as_view()), name='show-delivery'), url(r'^show-delivery/filedownload/(?P<filemetaid>\d+)$', login_required(FileDownloadView.as_view()), name='file-download'), url(r'^show-delivery/compressedfiledownload/(?P<deliveryid>\d+)$', login_required(CompressedFileDownloadView.as_view()), name='compressed-file-download'), #url(r'^show-delivery/tarfiledownload/(?P<deliveryid>\d+)$', #login_required(TarFileDownloadView.as_view()), #name='tar-file-download'), ) urlpatterns += student_restful