1👍
✅
Just move mainApp
above django.contrib.admin
in your INSTALLED_APPS
setting, so that Django searches the mainApp/templates
directory first.
That way, you don’t need to add mainApp/templates
to your DIRS
setting.
Source:stackexchange.com