Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신은섭(Shin Eun Seop)
/
2018-1-d.cloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
10
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
신은섭(Shin Eun Seop)
2018-05-22 11:10:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
673979207f0a14e4f703e79d77c3369a55eeec77
67397920
1 parent
6c606f4e
fix wrong url pattern
fix files url pattern kairos03/2018-1-d.cloud#10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
dcloud/dcloud/urls.py
dcloud/restful/urls.py
dcloud/dcloud/urls.py
View file @
6739792
...
...
@@ -19,4 +19,5 @@ from django.conf.urls import url, include
urlpatterns
=
[
url
(
'admin/'
,
admin
.
site
.
urls
),
url
(
r'^restapi/'
,
include
(
'restful.urls'
)),
# url(r'^$', include('website.urls')),
]
...
...
dcloud/restful/urls.py
View file @
6739792
...
...
@@ -4,7 +4,7 @@ from rest_framework.urlpatterns import format_suffix_patterns
from
restful
import
views
urlpatterns
=
[
url
(
r'^files/(?P<path>(
\/*
[a-zA-z0-9가-힣._-]*/)*)$'
,
views
.
FileList
.
as_view
(),
name
=
'file-list'
),
url
(
r'^files/(?P<path>([a-zA-z0-9가-힣._-]*/)*)$'
,
views
.
FileList
.
as_view
(),
name
=
'file-list'
),
url
(
r'^files/(?P<pk>[0-9]+)/$'
,
views
.
FileDetail
.
as_view
()),
]
...
...
Please
register
or
login
to post a comment