名称错误:未定义名称“myconf”

2024-10-03 02:32:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在写web2py图像博客。在

我无法理解这些错误:

Internal error

Ticket issued: images/127.0.0.1.2016-11-22.16-44-39.95144250-6a2e-4648-83f9-aa55873e6ae8

Error ticket for "images" Ticket ID 127.0.0.1.2016-11-22.16-44-39.95144250-6a2e-4648-83f9-aa55873e6ae8

type 'exceptions.NameError'> name 'myconf' is not defined

Version web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Python Python 2.7.12: /usr/bin/python (prefix: /usr)

Traceback (most recent call last):

File "/home/sonu/Software/web2py /gluon/restricted.py", line 227, in restricted exec ccode in environment

File "/home/sonu/Software/web2py /applications/images/models/menu.py", line 17, in response.meta.author = myconf.get('app.author') NameError: name 'myconf' is not defined


Tags: nameinhomeisversionusrnotticket
2条回答

我修复了同样的问题,如下所示:

我删除了models/menu.py,然后问题似乎得到了解决。在

=>;记住删除models/menu.py

这篇文章似乎在这里讨论。 resolved/work around

相关问题 更多 >