Skip to content

Commit

Permalink
[ftp] use setting BASE_URL if provided (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
athirahsoffian95w committed Apr 18, 2023
1 parent af8bbd5 commit b8ebf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storages/backends/ftp.py
Expand Up @@ -46,7 +46,7 @@ def __init__(self, location=None, base_url=None, encoding=None):
" settings.FTP_STORAGE_LOCATION'.")
self.location = location
self.encoding = encoding or setting('FTP_STORAGE_ENCODING') or 'latin-1'
base_url = base_url or settings.MEDIA_URL
base_url = base_url or setting('BASE_URL') or settings.MEDIA_URL
self._config = self._decode_location(location)
self._base_url = base_url
self._connection = None
Expand Down

0 comments on commit b8ebf38

Please sign in to comment.