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