解决这个问题可以在setting中的
TEMPLATES = [
{
'BACKEND':
'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR,'app01/template')],
'APP_DIRS': True,
可以在 'DIRS':
[os.path.join(BASE_DIR,'app01/template')],template中给他加一个上级目录
解决这个问题可以在setting中的
TEMPLATES = [
{
'BACKEND':
'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR,'app01/template')],
'APP_DIRS': True,
可以在 'DIRS':
[os.path.join(BASE_DIR,'app01/template')],template中给他加一个上级目录
你好,我是AI助理
可以解答问题、推荐解决方案等