Open naivewen opened 7 years ago
How can I make the right conf of the media? When I access the media,the nginx shows 404. But the static url is right!
This is the part of local.py
MEDIA_ROOT = '/home/taiga/media'
STATIC_ROOT = '/home/taiga/static'
And the default.conf
# Static files location /static { alias /taiga/static; } # Media files location /media { alias /taiga/media; }
How can I fix the error? Regards.
OH! I find the problem that it doesn't have the media volumes ! How can I add the volumes without the dockerFile?
How can I make the right conf of the media? When I access the media,the nginx shows 404. But the static url is right!
This is the part of local.py
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_ROOT = '/home/taiga/media'
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_ROOT = '/home/taiga/static'
And the default.conf
How can I fix the error? Regards.