怎么知道错误在哪里?

发布于 2024-09-16 03:16:04 字数 230 浏览 4 评论 0原文

我正在使用 django 应用程序(django adzone),但是我尝试添加横幅,django zone 告诉我“请修复错误”,但仅此而已,我看不到错误在哪里。

知道我怎么知道吗?

编辑

没有关于错误或类似内容的跟踪,只是一条 django 管理消息 看图片 alt text

谢谢

im using a django app (django adzone), well, but im trying to add banners, and django zone tell me " please fix the errors" , but nothing more, i cant see where are the errors.

any idea how ill know ?

EDITED

There's not trace about the error or something like that, is just a django admin message
see the images
alt text

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

旧时模样 2024-09-23 03:16:04

那么最好的办法是安装 ipdb (easy_install ipdb),然后将这些行放在 is_valid 方法的末尾(如果没有创建它):

import ipdb; ipdb.set_trace()

再次保存表单,然后转到路由器。您将可以访问一个 shell,您可以在其中检查几个嫌疑人,例如:

  • self.data
  • self.errors

Then your best shot is to install ipdb (easy_install ipdb) then drop these lines in at the end of the is_valid method (and if not create it):

import ipdb; ipdb.set_trace()

Save your form again, then go to the router. You'll have access to a shell where you can inspect several suspects like:

  • self.data
  • self.errors
知你几分 2024-09-23 03:16:04

好吧,我知道错误在哪里了。

还有另一个名为“Advertiser”的字段,但 Chrome 不显示此字段,我不知道为什么。抱歉,我认为没有错误,只是 Chrome 的“错误”。

FF、Opera、IE都显示了完整的形式。

谢谢

OK, i know where is the error.

There's another field named "Advertiser", but Chrome dont display this field, i dont know why. sorry i think there is not error, just a Chrome "bug".

FF,Opera, IE are showing the complete form.

Thanks

指尖微凉心微凉 2024-09-23 03:16:04

去过那里,看到过!

这不是 chrome 错误,而是广告拦截器阻止了输入!

你可以:
停用广告拦截器或重命名该字段(广告)

干杯

Been there, seen that!

It's not a chrome bug it's the Ad blocker blocking the input!

You can:
Deactivate the Ad blocker or rename the field (Advertise)

Cheers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文