Fix TEMPLATE_DIRS not exist in settings.py.