django配置模板路径和静态文件路径

TEMPLATES = [
{

'DIRS': [os.path.join(BASE_DIR, 'front', 'templates')],
'OPTIONS': {
'builtins':[
'django.templatetags.static'
]
},
},
]
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'front','dist')
]

TIME_ZONE = 'Asia/Shanghai'
USE_TZ = True

posted @ 2020-03-04 10:49  ret  阅读(298)  评论(0)    收藏  举报