1👍
✅
For a settings file created with ./manage.py startproject
, the APP_DIRS
option is True
. That means that when you create an app, any templates in that app’s template directory will be found.
The DIRS
option defaults to an empty list. That means that apart from app template directories, there are not any template directory that always work without configuration changes.
Setting 'DIRS': [os.path.join(BASE_DIR, 'templates')],
is a common approach, and it’s suggested in the documentation.
Source:stackexchange.com