from django.conf.urls import patterns, include, url from fileupload.views import PictureCreateView from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', PictureCreateView.as_view(), name='home'), url(r'^admin/', include(admin.site.urls)), )
# 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'), ]
from django.conf.urls.defaults import * from django.conf.urls import url from fileupload.views import PictureCreateView, PictureDeleteView # urlpatterns = patterns('', # (r'^new/$', PictureCreateView.as_view(), {}, 'upload-new'), # (r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), {}, 'upload-delete'), # ) urlpatterns = patterns('', url(r'^new/$', PictureCreateView.as_view(), name="upload-new"), url(r'^map/(?P<pk>\d+)$', PictureDeleteView.as_view(), name="upload-map"), url(r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), name="upload-delete"), )
# 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'), )
from django.conf.urls import patterns from fileupload.views import PictureCreateView, PictureDeleteView urlpatterns = patterns( '', (r'^new/$', PictureCreateView.as_view(), {}, 'upload-new'), (r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), {}, 'upload-delete'), )
from django.conf.urls import url from fileupload.views import PictureCreateView from django.contrib import admin admin.autodiscover() urlpatterns = [ url(r'^$', PictureCreateView.as_view(), name='home'), # url(r'^admin/', include(admin.site.urls)), ]
########################## Deprecated version ######################## # from django.conf.urls.defaults import * ########################## End deprecated version ######################## from django.conf.urls import * from fileupload.views import PictureCreateView, PictureDeleteView, ProjfileCreateView, ProjfileDeleteView, FragfileCreateView, FragfileDeleteView urlpatterns = patterns( '', (r'^new/$', PictureCreateView.as_view( template_name="fileupload/file_upload_form.html"), {}, 'upload-new'), (r'^new/projectfile/$', ProjfileCreateView.as_view( template_name="fileupload/projfile_upload_form.html"), {}, 'upload-new-projFile'), (r'^new/fragmentfile/$', FragfileCreateView.as_view( template_name="fileupload/frag_upload_form.html"), {}, 'upload-new-fragFile'), (r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), {}, 'upload-delete'), (r'^deleteprojectfile/(?P<pk>\d+)$', ProjfileDeleteView.as_view(), {}, 'upload-projfile-delete'), (r'^deletefragmentfile/(?P<pk>\d+)$', FragfileDeleteView.as_view(), {}, 'upload-fragFile-delete'))
# encoding: utf-8 from django.conf.urls import url from fileupload.views import ( AngularVersionCreateView, PictureCreateView, PictureDeleteView, PictureListView, ) urlpatterns = [ url(r'^new/$', PictureCreateView.as_view(), name='upload-new'), url(r'^angular/$', AngularVersionCreateView.as_view(), name='upload-angular'), url(r'^delete/(?P<pk>\d+)$', PictureDeleteView.as_view(), name='upload-delete'), url(r'^view/$', PictureListView.as_view(), name='upload-view'), ]
from django.conf.urls.defaults import * from fileupload.views import PictureCreateView, PictureDeleteView from django.contrib.auth.decorators import login_required urlpatterns = patterns( '', (r'^new/$', login_required(PictureCreateView.as_view()), {}, 'upload-new'), (r'^delete/(?P<pk>\d+)$', login_required( PictureDeleteView.as_view()), {}, 'upload-delete'), )
from django.conf.urls.defaults import * from fileupload.views import PictureCreateView, PictureDeleteView, multiple_uploader urlpatterns = patterns( "", (r"^new/$", PictureCreateView.as_view(), {}, "upload-new"), (r"^new/add/$", multiple_uploader, {}, "upload-add"), (r"^delete/(?P<pk>\d+)$", PictureDeleteView.as_view(), {}, "upload-delete"), )
from django.conf.urls.defaults import * from fileupload.views import PictureCreateView, PictureDeleteView from django.contrib.auth.decorators import login_required urlpatterns = patterns('', (r'^new/$', login_required(PictureCreateView.as_view()), {}, 'upload-new'), (r'^delete/(?P<pk>\d+)$', login_required(PictureDeleteView.as_view()), {}, 'upload-delete'), )