1👍
✅
The idea behind os.path.dirname(os.path.dirname(__file__))
is to get two directories above your settings directory.
Your code os.path.abspath(os.path.dirname(__file__))
is the same as os.path.dirname(__file__)
.
You probably changed where your settings.py resides and for that you must change its path.
Source:stackexchange.com