7👍
✅
Well I seem to have answered my own question. It was a very minor issue as it turns out. All I did was change the media root to the complete path and voila.
MEDIA_ROOT = 'Users/username/Desktop/myapp/media/'
10👍
I just had the same problem with the absolute path, but I realised something else. I was joining the path like this:
os.path.join(BASE_DIR, "/media")
But, as stated by the documentation:
If a component is an absolute path, all previous components are thrown
away and joining continues from the absolute path component.
So removing the root slash solves the problem:
os.path.join(BASE_DIR, "media")
Cheers.
- [Django]-Django on Heroku, url template tag causes 'ParseResult' object not callable
- [Django]-CSRF verification failed after adding a filefield on model
- [Django]-OAuth web service and Django-piston
- [Django]-Django can not delete csrftoken after logout
Source:stackexchange.com