
1 xiakt 2012 年 4 月 18 日 app下面建templates目录就行了? |
3 c 2012 年 4 月 18 日 import os TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), 'templates'), ) |
4 bhuztez 2012 年 4 月 18 日 你随便搜一下就知道了,一般建议类似这样 PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) TEMPLATE_DIRS = ( os.path.join(PROJECT_PATH, 'templates'), ) |