123456789101112131415161718192021 |
- from django.conf.urls import include, url
- from django.conf.urls.static import static
- from . import views
- urlpatterns = [
- url(r'^$', views.IndexView.as_view(), name='media_list'),
- url(r'^tag/(?P<slug>[\w]+)/$', views.TagIndex.as_view(), name='tag_list'),
- url(r'^(?P<pk>\d+)/$', views.DetailView.as_view(), name='media_detail'),
- url(r'^(?P<pk>\d+)/edit/$', views.media_edit, name='media_edit'),
- url(r'^new/$', views.media_new, name='media_new'),
- url(r'^chunked_upload$', views.chunked_upload, name='chunked_upload'),
- url(r'^api/chunked_upload/?$', views.MediaChunkedUploadView.as_view(), name='api_chunked_upload'),
- url(r'^api/chunked_upload_complete/?$', views.MediaChunkedUploadCompleteView.as_view(), name='api_chunked_upload_complete'),
- url(r'^search/', include('haystack.urls')),
- ]
- urlpatterns += static('uploads/', document_root='uploads/', show_indexes=True)
|