
1 xiaket 2012-04-18 20:41:26 +08:00 app下面建templates目录就行了? |
3 c 2012-04-18 20:49:05 +08:00 import os TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), 'templates'), ) |
4 bhuztez 2012-04-18 20:4915 +08:00 你随便搜一下就知道了,一般建议类似这样 PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) TEMPLATE_DIRS = ( os.path.join(PROJECT_PATH, 'templates'), ) |