urls.py 502 Bytes
from django.conf.urls import url
from django.shortcuts import redirect
from rest_framework.urlpatterns import format_suffix_patterns
from restful import views

urlpatterns = [
    url(r'^list/(?P<path>([a-zA-z0-9가-힣._-]*/)*)$', views.FileList.as_view(), name='file-list'),
    # url(r'^files/(?P<pk>[0-9]+)/$', views.FileDetail.as_view()),

    url(r'^file/(?P<path>([a-zA-z0-9가-힣._-]*/*)*)$', views.FileDetail.as_view(), name='file-detail')
]

urlpatterns = format_suffix_patterns(urlpatterns)