4👍
✅
First thing I would try is deleting your *.pyc files they often contain stale information which sometimes can cause issues likes this.
If that isn’t the case I would then double check your PROJECT_PATH
which I believe is the issue here.
dirname
gets you the containing directory. so if that line is in the settings.py it will return /path/to/inner/mysite
the one inside the main mysite and since there is not templates
directory in your inner mysite
it wont work.
what you need to do is this.
PROJECT_PATH = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
Which will return you the outer mysite
path when combined with templates it will return you the correct path.
Everything should then work.
Source:stackexchange.com