2018-04-19 19:52:40 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
2018-09-23 02:25:04 +00:00
|
|
|
from .views import (FileUploadView, FileDeleteView, ImageFileUploadView,
|
|
|
|
ImageFileDeleteView)
|
2018-04-19 19:52:40 +00:00
|
|
|
|
|
|
|
app_name = 'files'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2018-04-23 05:15:33 +00:00
|
|
|
url(r'^upload/$', FileUploadView.as_view(), name='upload'),
|
2018-09-23 02:25:04 +00:00
|
|
|
url(r'^upload/image/$', ImageFileUploadView.as_view(), name='upload_image'),
|
2018-04-23 05:15:33 +00:00
|
|
|
url(r'^delete/(?P<pk>\d+)/$', FileDeleteView.as_view(), name='delete'),
|
2018-09-23 02:25:04 +00:00
|
|
|
url(r'^delete/image/(?P<pk>\d+)/$', ImageFileDeleteView.as_view(), name='delete_image'),
|
2018-04-19 19:52:40 +00:00
|
|
|
]
|