Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
162a6405
Commit
162a6405
authored
Jan 16, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #663 in RMS/api-main-service from red-develop to product-dev
* commit '
ade61076
': testing
parents
2aeaba81
ade61076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
config/urls.py
config/urls.py
+8
-2
No files found.
config/urls.py
View file @
162a6405
...
...
@@ -20,6 +20,7 @@ from app.applicationlayer.management.notification import views as notifview
from
django.views.static
import
serve
from
django.conf
import
settings
from
django.conf.urls.static
import
static
import
django.views.static
urlpatterns
=
[
...
...
@@ -32,8 +33,8 @@ urlpatterns = [
url
(
r'^chat/$'
,
notifview
.
index
,
name
=
'index'
),
url
(
r'^chat/(?P<room_name>[^/]+)/$'
,
notifview
.
room
,
name
=
'room'
),
re_path
(
r'^media/(?P<path>.*)$'
,
serve
,{
'document_root'
:
settings
.
MEDIA_ROOT
}),
re_path
(
r'^static/(?P<path>.*)$'
,
serve
,{
'document_root'
:
settings
.
STATIC_ROOT
}),
#
re_path(r'^media/(?P<path>.*)$', serve,{'document_root': settings.MEDIA_ROOT}),
#
re_path(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_ROOT}),
path
(
'api/v1/asset-management/'
,
include
(
'app.applicationlayer.ams.urls_ams'
)),
]
...
...
@@ -41,3 +42,8 @@ urlpatterns = [
if
settings
.
DEBUG
:
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
urlpatterns
+=
static
(
settings
.
STATIC_URL
,
document_root
=
settings
.
STATIC_ROOT
)
else
:
urlpatterns
+=
[
url
(
r'^static/(?P<path>.*)$'
,
django
.
views
.
static
.
serve
,
{
'document_root'
:
settings
.
STATIC_ROOT
,
'show_indexes'
:
settings
.
DEBUG
}),
url
(
r'^media/(?P<path>.*)$'
,
django
.
views
.
static
.
serve
,
{
'document_root'
:
settings
.
MEDIA_ROOT
,
'show_indexes'
:
settings
.
DEBUG
})
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment