在 Satchmo/Django 项目上使用 Git 的正确方法

发布于 2024-12-18 13:20:19 字数 253 浏览 5 评论 0原文

我已经建立了一个 django/satchmo 电子商务网站,该网站开始获得一些流量,但我遇到了问题,因为我没有智能的方法来处理数据库更改。当我在本地系统上开发网站时,我对布局和管理产品属性的数据库进行了更改。

当我想将新的开发推送到服务器时,我必须覆盖服务器数据库,其中包含有关最近购物者和购买的信息。

我想要做的是将两个数据库“合并”在一起,以便新的购买仍然记录在数据库中,但这也允许我将本地更改推送到服务器。

我将不胜感激任何建议。谢谢。

I've built a django/satchmo ecommerce site which is starting to get some traffic, and I am having a problem because I do not have a smart way to deal with database changes. When I develop the site on my local system, I make changes to the layout and the DB, which manages the product attributes.

When I want to push new developments to the server, I have to overwrite the server database which has information about recent shoppers and purchases.

What I want to do is "merge" the two databases together so that new purchases still stay recorded in the database, but which also allow me to push local changes to the server.

I'd appreciate any advice. Thanks.

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

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

发布评论

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

评论(1

月亮是我掰弯的 2024-12-25 13:20:19

您使用的是 south 吗? (如果没有,您应该)

特别看看数据迁移

are you using south? (if not, you should)

in particular, have a look at data migrations

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