Python论坛  - 讨论区

标题:[python-chinese] woodlog问题~~~

2006年03月12日 星期日 17:31

风向标 vaneoooo at gmail.com
Sun Mar 12 17:31:02 HKT 2006

挺惭愧的
down了代码,一点忙也没帮上,一点开发也没参与,老是提问。
有这样几个问题

1  当我访问http://127.0.0.1/admin/  时,它会报错提示:


AttributeError at /admin/
'User' object has no attribute 'get_permission_list'
Request Method: GET
Request URL: http://127.0.0.1/admin/
Exception Type: AttributeError
Exception Value: 'User' object has no attribute 'get_permission_list'
Exception Location: c:\python24\lib\site-packages\django-
0.91-py2.4.egg\django\contrib\auth\models.py in get_all_permissions, line
158

Template error
In template c:\python24\lib\site-packages\django-
0.91-py2.4.egg\django\contrib\admin\templates\admin/index.html, error at
line 12

 Template error

In template c:\python24\lib\site-packages\django-
0.91-py2.4.egg\django\contrib\admin\templates\admin/index.html, error at
line *12*

**
2  当我访问http://127.0.0.1/help/  时 ,它会报错提示:


TemplateDoesNotExist at /help/
home/help
Request Method: GET
Request URL: http://127.0.0.1/help/
Exception Type: TemplateDoesNotExist
Exception Value: home/help
Exception Location: c:\python24\lib\site-packages\django-
0.91-py2.4.egg\django\template\loader.py in find_template_source, line 72

Template-loader postmortem
Django tried loading these templates, in this order:

Using loader django.template.loaders.filesystem.load_template_source:
./templates/home/help.html (File does not exist)
Using loader django.template.loaders.app_directories.load_template_source:
c:\python24\lib\site-packages\django-
0.91-py2.4.egg\django\contrib\admin\templates\home/help.html (File does not
exist)
D:\newtest\blog\apps\profile\templates\home/help.html (File does not exist)
D:\newtest\blog\apps\woodlog\templates\home/help.html (File does not exist)
D:\newtest\blog\public\apps\account\templates\home/help.html (File does not
exist)
D:\newtest\blog\public\apps\easyform\templates\home/help.html (File does not
exist)

我尝试过在urls.py中修改    (r'^help/$', '
django.views.generic.simple.direct_to_template',{'template':'home/help'}),
来让程序找到help,结果还是不行。

3
一个问题,是直到我写下来的时候才回想起来。我通过程序来注册admin,却始终要报错。当我重新启动django然后注册时,它告诉我已经有这个用户名和email了。
我才回想起来好象django的0.92一直有个关于admin用户的问题没解决。

4 当我登陆后,访问http://127.0.0.1/setting/  会报错提示:

AttributeError at /setting/
'User' object has no attribute 'userprofile'
Request Method: GET
Request URL: http://127.0.0.1/setting/
Exception Type: AttributeError
Exception Value: 'User' object has no attribute 'userprofile'
Exception Location: D:\newtest\blog\apps\profile\views.py in _func, line 19

------------------------------------------------------------------------------------------------------------------------------------

现在能够登陆了,但是未能进入admin,所以一直还没尝试到发布文章等等功能。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060312/da56b3a9/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号