[Django]-When deploy on Heroku, report TypeError: expected str, bytes or os.PathLike object, not tuple

4👍

The error is in your STATIC_ROOT setting. As the error message states, you are passing a tuple instead of a path:

STATIC_ROOT = (BASE_DIR, "staticfiles")

change it to:

STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
👤Selcuk

Leave a comment