Django-paypal 不在数据库中创建 IPN 表 - 如何修复?

发布于 2024-12-24 02:42:49 字数 591 浏览 1 评论 0原文

安装 django-paypal 并执行 syncdb 后 - 当我登录时作为管理员,我在数据库中没有看到任何 Paypal IPN 表。经过一番搜索,我发现了一篇关于 Integrating Django and Paypal< /a>,其中说道:

以防万一有人遇到与数据库相关的问题,django-paypal 使用 South 来处理其模型创建。所以运行./manage.py syncdb 将不会创建 Paypal 相关表。

糟糕。所以我的问题是,除了安装 South 之外,还有什么简单的方法来创建表吗?或者这是唯一真正的选择?

(是的,我确信我应该在某个时候安装 South - 现在,它只是另一个需要安装/配置的软件包,需要学习 - 并且可能会破坏一些东西。:)

After installing django-paypal, and doing a syncdb - when I logged in as admin, I didn't see any Paypal IPN tables in the database. After some searching, I found a post on Integrating Django and Paypal, which said:

Just in case anyone is running into DB related problems, django-paypal
uses South to handle it's model creation. So running ./manage.py
syncdb will not create the Paypal related tables.

Wups. So my question is, is there any simple way to create the tables other than installing South? Or is that the only real option?

(Yes, I'm sure I should install South at some point - right now, it's just one more package to install/configure, that needs to be learned - and might break things. :)

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

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

发布评论

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

评论(1

凉墨 2024-12-31 02:42:49

如果软件包由 South 管理,最简单的方法是仅使用 South。 South 不需要任何配置 - 您所要做的就是将其添加到 INSTALLED_APPS 并运行syncdb。安装 South 后,您没有义务用它来管理您自己的代码 - 您可以继续将它用于 django-paypal。不要担心开始使用它很复杂 - 事实并非如此。

至于你的问题,我相信可能有办法解决必须使用南方的问题。我首先想到的是进入 django-paypal 的安装目录并手动删除 South 迁移 - 但我还没有尝试过,这只是一个想法。不过,我认为在这种情况下安装 South 会容易得多。

If a package is managed by South, the easiest way is to just use South. South doesn't require any configuration - all you have to do is add it to INSTALLED_APPS and run syncdb. After you've installed South, you are in no way obligated to manage your own code with it - you can just keep using it for django-paypal. Don't be afraid that it's complicated to get started with it - it really isn't.

As for your question, I believe there may be a work around having to use South. The first thing that comes to mind is going into django-paypal's installation directory and removing the South migrations manually - but I haven't tried it, it's just a thought. However, I think installing South would be way easier in this case.

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