码迷,mamicode.com
首页 > 其他好文 > 详细

django TEMPLATES

时间:2016-09-10 20:35:38      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:

?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. 
You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.
TEMPLATES = [
    {
        BACKEND: django.template.backends.django.DjangoTemplates,
     #主要看下面这行。需要将templates添加至dirs中。应该是某个版本改了这个东西,不再是TEMPLATES_DIRS了。
DIRS: [os.path.join(os.path.dirname(__file__),templates).replace(\\,/),], APP_DIRS: 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, ], }, }, ]

 

django TEMPLATES

标签:

原文地址:http://www.cnblogs.com/drgcaosheng/p/5860023.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!