Fakultas Ilmu Komputer UI

Commit fbb27506 authored by Glenda Emanuella Sutanto's avatar Glenda Emanuella Sutanto
Browse files

Merge branch 'fix-media-url' into 'staging'

Add prefix for media url

See merge request !65
parents 9230f935 3dfd5ed4
Pipeline #76476 passed with stages
in 11 minutes and 56 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