Exemplo n.º 1
0
from django.conf.urls import patterns, url
from fileupload.views import UploadView

urlpatterns = patterns('',
    url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='fileupload'),
)

Exemplo n.º 2
0
from django.conf.urls import patterns, include, url

from fileupload.views import UploadView

urlpatterns = patterns('fileupload.views',
    url(r'^upload/$', 'upload', name='upload'),
    url(r'^$', UploadView.as_view(), name='upload_view')
)