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
b61e2437
Commit
b61e2437
authored
Sep 27, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing
parent
585665c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/applicationlayer/cms/template/header/serializers.py
app/applicationlayer/cms/template/header/serializers.py
+1
-1
config/urls.py
config/urls.py
+4
-4
No files found.
app/applicationlayer/cms/template/header/serializers.py
View file @
b61e2437
...
@@ -30,7 +30,7 @@ class ChangeRequestTemplateAttachmentsSerializer(
...
@@ -30,7 +30,7 @@ class ChangeRequestTemplateAttachmentsSerializer(
"contact_no"
:
instance
.
uploaded_by
.
contact_no
"contact_no"
:
instance
.
uploaded_by
.
contact_no
}
}
ret
[
'uploaded_by'
]
=
user_object
ret
[
'uploaded_by'
]
=
user_object
# ret['file_upload'] = settings.MEDIA_URL
ret
[
'file_upload'
]
=
instance
.
file_upload
.
url
.
url
return
ret
return
ret
# except Exception as e:
# except Exception as e:
# ret['uploaded_by'] = "none"
# ret['uploaded_by'] = "none"
...
...
config/urls.py
View file @
b61e2437
...
@@ -37,8 +37,8 @@ urlpatterns = [
...
@@ -37,8 +37,8 @@ urlpatterns = [
re_path
(
r'^media/(?P<path>.*)$'
,
serve
,{
'document_root'
:
settings
.
MEDIA_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}),
# re_path(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_ROOT}),
]
]
+
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
if
settings
.
DEBUG
:
# if settings.DEBUG:
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
# urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
\ No newline at end of file
\ No newline at end of file
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