Error in python Django.If you add template or other os based function it will show error of os.So you can solve using import os.
'DIRS': [os.path.join(BASE_DIR, 'super_admin/template')],
NameError: name 'os' is not defined
Django os error.
how to solve os import error.