how to config django templates with pathlib

OpenAI API failed. Please try your prompt again.