I am able to upload the files to media folder( \'/peaceroot/www/media/\'
) that I have set up in settings.py
as below
MEDIA_ROOT = \'/pe
Just to add: in case the other answers do not work for you, try putting the static url before the other ones. Like so:
urlpatterns = static(...) + [...]
What may be happening is that some of your patterns in the list prevent the request from reaching the static handlers. So putting the static handlers first solves this. Worked for me.