Fakultas Ilmu Komputer UI

Commit 3dfd5ed4 authored by Glenda Emanuella Sutanto's avatar Glenda Emanuella Sutanto
Browse files

[CHORES] Add prefix for media url

parent 9230f935
Pipeline #76473 passed with stages
in 11 minutes and 14 seconds
......@@ -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/'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment