14 lines
505 B
Python
14 lines
505 B
Python
from django.conf.urls import url
|
|
|
|
from .views import (FileUploadView, FileDeleteView, ImageFileUploadView,
|
|
ImageFileDeleteView)
|
|
|
|
app_name = 'files'
|
|
|
|
urlpatterns = [
|
|
url(r'^upload/$', FileUploadView.as_view(), name='upload'),
|
|
url(r'^upload/image/$', ImageFileUploadView.as_view(), name='upload_image'),
|
|
url(r'^delete/(?P<pk>\d+)/$', FileDeleteView.as_view(), name='delete'),
|
|
url(r'^delete/image/(?P<pk>\d+)/$', ImageFileDeleteView.as_view(), name='delete_image'),
|
|
]
|