TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
# 'DIRS': ['frontend/dist'],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True, #需要设置为True
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
REST-framework快速构建API--生成Swagger接口文档
https://blog.csdn.net/weixin_30496431/article/details/95587095
标签:DIRS,processors,messages,site,django,context,Django,template From: https://www.cnblogs.com/gtea/p/16946055.html