Ejemplo 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'),
]
Ejemplo n.º 2
0
# encoding: utf-8
from django.urls import path
from django.contrib.auth.decorators import login_required
from fileupload.views import (
    BasicVersionCreateView,
    BasicPlusVersionCreateView,
    jQueryVersionCreateView,
    AngularVersionCreateView,
    PictureCreateView,
    PictureDeleteView,
    PictureListView,
)

app_name = "upload"

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/',
         login_required(AngularVersionCreateView.as_view()),
         name='upload-angular'),
    #    path('jquery-ui/', jQueryVersionCreateView.as_view(), name='upload-jquery'),
    path('delete/<int:pk>',
         login_required(PictureDeleteView.as_view()),
         name='upload-delete'),
    path('view/',
         login_required(PictureListView.as_view()),
         name='upload-view'),
]
Ejemplo n.º 3
0
# 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'),
)
Ejemplo n.º 4
0
# encoding: utf-8
from django.conf.urls import patterns, url, include
from fileupload.views import (
    BasicVersionCreateView,
    BasicPlusVersionCreateView,
    jQueryVersionCreateView,
    AngularVersionCreateView,
    PictureCreateView,
    PictureDeleteView,
    PictureListView,
)
from django.http import HttpResponseRedirect
from tastypie.api import Api
from fileupload.api.resources import PictureResource

v1_api = Api(api_name='v1')
v1_api.register(PictureResource())

urlpatterns = patterns(
    '',
    url(r'^$',
        lambda x: HttpResponseRedirect('/benchmark/upload/basic/plus/')),
    url(r'^basic/plus/$',
        BasicPlusVersionCreateView.as_view(),
        name='upload-basic-plus'),
    url(r'^delete/(?P<pk>\d+)$',
        PictureDeleteView.as_view(),
        name='upload-delete'),
    url(r'^view/$', PictureListView.as_view(), name='upload-view'),
    url(r'^api/', include(v1_api.urls)),
)
Ejemplo n.º 5
0
Archivo: urls.py Proyecto: b2scrip/cms
# encoding: utf-8
from django.urls import path
from django.contrib.auth.decorators import login_required
from fileupload.views import (
        BasicVersionCreateView, BasicPlusVersionCreateView,
        jQueryVersionCreateView, AngularVersionCreateView,
        PictureCreateView, PictureDeleteView, PictureListView,
        )

app_name = "upload"

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/', login_required(AngularVersionCreateView.as_view()), name='upload-angular'),
#    path('jquery-ui/', jQueryVersionCreateView.as_view(), name='upload-jquery'),
    path('delete/<int:pk>', login_required(PictureDeleteView.as_view()), name='upload-delete'),
    path('view/', login_required(PictureListView.as_view()), name='upload-view'),
]
Ejemplo n.º 6
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'),
]
Ejemplo n.º 7
0
# encoding: utf-8
from django.conf.urls import patterns, url
from fileupload.views import (
        BasicVersionCreateView, BasicPlusVersionCreateView,
        jQueryVersionCreateView, AngularVersionCreateView,
        PictureCreateView, PictureDeleteView, PictureListView,
        )
from django.contrib.auth.decorators import login_required

urlpatterns = patterns('',
    #url(r'^basic/$', login_required(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'^product/$', login_required(AngularVersionCreateView.as_view()), name='upload-angular'),
    #url(r'^jquery-ui/$', jQueryVersionCreateView.as_view(), name='upload-jquery'),
    url(r'^delete/(?P<pk>\d+)$', login_required(PictureDeleteView.as_view()), name='upload-delete'),
    url(r'^view/$', login_required(PictureListView.as_view()), name='upload-view'),
)