setting.py中配置:
TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', )
TEMPLATE_DIRS = ( BASE_DIR + 'app名称/templates/', )
文章URL:http://www.cnblogs.com/btchenguang/archive/2012/09/05/2672364.html