Esempio n. 1
0
# encoding: utf-8
from django.urls import path
from fileupload.views import (
    BasicVersionCreateView,
    BasicPlusVersionCreateView,
    jQueryVersionCreateView,
    AngularVersionCreateView,
    PictureCreateView,
    PictureDeleteView,
    PictureListView,
)

urlpatterns = [
    path('basic/', BasicVersionCreateView.as_view(), name='upload-basic'),
    path('basic/plus/',
         BasicPlusVersionCreateView.as_view(),
         name='upload-basic-plus'),
    path('new/', PictureCreateView.as_view(), name='upload-new'),
    path('angular/', AngularVersionCreateView.as_view(),
         name='upload-angular'),
    path('jquery-ui/', jQueryVersionCreateView.as_view(),
         name='upload-jquery'),
    path('delete/<int:pk>', PictureDeleteView.as_view(), name='upload-delete'),
    path('view/', PictureListView.as_view(), name='upload-view'),
]
# encoding: utf-8
from django.conf.urls import patterns, url
from fileupload.views import (
        BasicVersionCreateView, BasicPlusVersionCreateView,
        jQueryVersionCreateView, AngularVersionCreateView,
        PictureCreateView, PictureDeleteView, PictureListView,
        )

urlpatterns = patterns('',
    url(r'^basic/$', BasicVersionCreateView.as_view(), name='upload-basic'),
    url(r'^basic/plus/$', BasicPlusVersionCreateView.as_view(), name='upload-basic-plus'),
    url(r'^new/$', PictureCreateView.as_view(), name='upload-new'),
    url(r'^angular/$', AngularVersionCreateView.as_view(), name='upload-angular'),
    url(r'^jquery-ui/$', jQueryVersionCreateView.as_view(), name='upload-jquery'),
    url(r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), name='upload-delete'),
    url(r'^view/$', PictureListView.as_view(), name='upload-view'),
)
Esempio n. 3
0
# encoding: utf-8
from django.conf.urls import patterns, url
from fileupload.views import BasicVersionCreateView, BasicPlusVersionCreateView, PictureCreateView, AngularVersionCreateView, jQueryVersionCreateView, PictureDeleteView

urlpatterns = patterns('',
    (r'^basic/$', BasicVersionCreateView.as_view(), {}, 'upload-basic'),
    (r'^basic/plus/$', BasicPlusVersionCreateView.as_view(), {}, 'upload-basic-plus'),
    (r'^new/$', PictureCreateView.as_view(), {}, 'upload-new'),
    (r'^angular/$', AngularVersionCreateView.as_view(), {}, 'upload-angular'),
    (r'^jquery-ui/$', jQueryVersionCreateView.as_view(), {}, 'upload-jquery'),
    (r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), {}, 'upload-delete'),
    url(r'^view/$', 'fileupload.views.PictureListView', name='upload-view'),
)



Esempio n. 4
0
# encoding: utf-8
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import permission_required

from fileupload.views import (
    BasicVersionCreateView,
    SubmissionCreateView,
    SubmissionDeleteView,
    SubmissionListView,
    SubmitList,
)

urlpatterns = patterns(
    '',
    url(r'^view/$',
        permission_required('is_staff')(SubmissionListView.as_view()),
        name='upload-view'),
    url(r'^basic/$',
        permission_required('is_staff')(BasicVersionCreateView.as_view()),
        name='upload-basic'),
)
from django.conf.urls import patterns, url
from fileupload.views import BasicVersionCreateView, BasicPlusVersionCreateView, PictureCreateView, AngularVersionCreateView, jQueryVersionCreateView, PictureDeleteView

urlpatterns = patterns(
    '',
    (r'^basic/$', BasicVersionCreateView.as_view(), {}, 'upload-basic'),
    (r'^basic/plus/$', BasicPlusVersionCreateView.as_view(), {},
     'upload-basic-plus'),
    (r'^new/$', PictureCreateView.as_view(), {}, 'upload-new'),
    (r'^angular/$', AngularVersionCreateView.as_view(), {}, 'upload-angular'),
    (r'^jquery-ui/$', jQueryVersionCreateView.as_view(), {}, 'upload-jquery'),
    (r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), {},
     'upload-delete'),
    url(r'^view/$', 'fileupload.views.PictureListView', name='upload-view'),
)
Esempio n. 6
0
# encoding: utf-8
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import permission_required


from fileupload.views import (
		BasicVersionCreateView,
        SubmissionCreateView, SubmissionDeleteView, SubmissionListView,
        SubmitList,
)

urlpatterns = patterns('',
    url(r'^view/$', permission_required('is_staff')(SubmissionListView.as_view()), name='upload-view'),
    url(r'^basic/$', permission_required('is_staff')(BasicVersionCreateView.as_view()), name='upload-basic'),
)
Esempio n. 7
0
# encoding: utf-8
from django.conf.urls import url
from fileupload.views import (
    BasicVersionCreateView,
    PictureDeleteView,
    PictureListView,
)

urlpatterns = [
    url(r'^basic/$', BasicVersionCreateView.as_view(), name='upload-basic'),
    url(r'^delete/(?P<pk>\d+)$',
        PictureDeleteView.as_view(),
        name='upload-delete'),
    url(r'^view/$', PictureListView.as_view(), name='upload-view'),
]
Esempio n. 8
0
# encoding: utf-8
from django.urls import path
from fileupload.views import (
        BasicVersionCreateView, BasicPlusVersionCreateView,
        jQueryVersionCreateView, AngularVersionCreateView,
        PictureCreateView, PictureDeleteView, PictureListView,
        )

urlpatterns = [
    path('basic/', BasicVersionCreateView.as_view(), name='upload-basic'),
    path('basic/plus/', BasicPlusVersionCreateView.as_view(), name='upload-basic-plus'),
    path('new/', PictureCreateView.as_view(), name='upload-new'),
    path('angular/', AngularVersionCreateView.as_view(), name='upload-angular'),
    path('jquery-ui/', jQueryVersionCreateView.as_view(), name='upload-jquery'),
    path('delete/<int:pk>', PictureDeleteView.as_view(), name='upload-delete'),
    path('view/', PictureListView.as_view(), name='upload-view'),
]