django-storages icon indicating copy to clipboard operation
django-storages copied to clipboard

subdomain url dosent work with ftp method

Open hadibeiki opened this issue 1 year ago • 1 comments

i use django-storages for upload my file to download host domain. the file uploaded correctly but the url of file in template is not coorect. my MEDIA_ROOT and MEDIA_URL is like this:

MEDIA_URL = 'dl.example.com/' MEDIA_ROOT = 'dl.example.com'

my main domain is www.example.com and my download domain is dl.example.com when i go to my website the src of the images is "https://example.com/en/dl.example.com/..."

how can i fixed with correct url!?

hadibeiki avatar Feb 16 '24 11:02 hadibeiki

In the docs you can adjust BASE_URL to make it work; how are you using .url()?

jschneier avatar Feb 21 '24 05:02 jschneier