Django
当运行 python manage.py runserver成功打开浏览器访问
报错误
TemplateDoesNotExist at /admin/
admin/index.html
Request Method: | GET |
---|---|
Request URL: | http://localhost:8000/admin/ |
Django Version: | 1.3.1 |
Exception Type: | TemplateDoesNotExist |
Exception Value: |
admin/index.html |
Exception Location: | F:\Python25\lib\site-packages\django\template\loader.py in find_template, line 138 |
Python Executable: | F:\Python25\python.exe |
Python Version: | 2.5.2 |
Python Path: |
['D:\\gamebbs', 'C:\\Windows\\system32\\python25.zip', 'F:\\Python25\\DLLs', 'F:\\Python25\\lib', 'F:\\Python25\\lib\\plat-win', 'F:\\Python25\\lib\\lib-tk', 'F:\\Python25', 'F:\\Python25\\lib\\site-packages'] |
Server time: | Sun, 13 Nov 2011 21:55:35 +0800 |
Template-loader postmortem
Django couldn't find any templates because your TEMPLATE_LOADERS
setting is empty!
-----------------------------------------------------------------------------
解决办法
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
去掉这两句的注释s