Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Backend
Commits
3dfd5ed4
Commit
3dfd5ed4
authored
May 12, 2021
by
Glenda Emanuella Sutanto
Browse files
[CHORES] Add prefix for media url
parent
9230f935
Pipeline
#76473
passed with stages
in 11 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dietela_backend/settings.py
View file @
3dfd5ed4
...
...
@@ -211,5 +211,6 @@ REST_AUTH_REGISTER_SERIALIZERS = {
'REGISTER_SERIALIZER'
:
'authentication.serializers.CustomRegisterSerializer'
}
URL_PREFIX
=
os
.
environ
.
get
(
"URL_PREFIX"
,
""
)
MEDIA_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'media'
)
MEDIA_URL
=
'
/media/'
MEDIA_URL
=
f
'
{
URL_PREFIX
}
/media/'
Write
Preview
Supports
Markdown
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