'DIRS': [ os.path.join(BASE_DIR, 'templates')], NameError: name 'os' is not defined code example
Example: STATIC_ROOT = os.path.join(BASE_DIR, 'static') NameError: name 'os' is not defined
# settings.py
import os # new
from pathlib import Path
# settings.py
import os # new
from pathlib import Path