MEDIA_ROOT error : _getfullpathname: path should be string, bytes or os.PathLike, not tuple?
MEDIA_ROOT error : _getfullpathname: path should be string, bytes or os.PathLike, not tuple?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The value of both the
MEDIA_ROOT
andSTATIC_ROOT
variables in yoursettings.py
have a trailing comma. The trailing comma turns the value of these variables from a string into a tuple.Removing the trailing comma should resolve the problem.