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

原文地址:https://www.cnblogs.com/ret688/p/12408168.html