python django-cart 还是 Satchmo?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/490439/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 20:13:31  来源:igfitidea点击:

django-cart or Satchmo?

pythondjangoe-commercesatchmo

提问by Ryan Duffield

I'm looking to implement a very basic shopping cart. Satchmoseems to install a lotof applications and extra stuff that I don't need. I've heard others mention django-cart. Has anyone tried this Django app (django-cart)? Anything to watch for or any other experiences?

我正在寻找实现一个非常基本的购物车。 Satchmo似乎安装了很多我不需要的应用程序和额外的东西。我听说其他人提到django-cart。有没有人试过这个 Django 应用程序(django-cart)?有什么值得关注的或任何其他体验?

回答by Van Gale

Well if you want to use django-cart you should view it as a starting point for developing your own. The last commit (r4) for the project was November 2006.

好吧,如果您想使用 django-cart,您应该将其视为开发自己的起点。该项目的最后一次提交 (r4) 是 2006 年 11 月。

By comparison, the last commit (r1922) to Satchmo was a couple of hours ago.

相比之下,对 Satchmo 的最后一次提交 (r1922) 是几个小时前。

With Satchmo you get code that is under active development and actually used by real e-commerce sites.

使用 Satchmo,您可以获得正在积极开发并被真实电子商务网站实际使用的代码。

If you develop your own you're running the risk of alienating customers and losing money. If you use Satchmo you can spend more time developing/improving other areas of your site.

如果您自己开发,您将面临疏远客户和赔钱的风险。如果您使用 Satchmo,您可以花更多时间开发/改进网站的其他区域。

I bet you can already guess my recommendation :)

我打赌你已经猜到我的建议了:)

As for the apps and other stuff in Satchmo I can tell you, from personal experience, that you don't need to include them all in your INSTALLED_APPS setting. I don't remember exactly what I pared it down to, but there were only around 6-7 Satchmo apps in my INSTALLED_APPS and they were all ones I needed. I think they've done even more modularization since then.

至于 Satchmo 中的应用程序和其他东西,我可以根据个人经验告诉您,您不需要将它们全部包含在 INSTALLED_APPS 设置中。我不记得我把它缩减到什么程度了,但我的 INSTALLED_APPS 中只有大约 6-7 个 Satchmo 应用程序,它们都是我需要的。我认为从那时起他们已经做了更多的模块化。

回答by Andrew

I think the reason there aren't really many out-of-the-box solutions is because most people who use Django are power users. They tend to want to roll out their own solutions, especially considering how easy it is to do in Django.

我认为没有很多开箱即用的解决方案的原因是因为大多数使用 Django 的人都是高级用户。他们倾向于推出自己的解决方案,尤其是考虑到在 Django 中实现起来是多么容易。

To answer your question, DJwarehouseis the only other cart I'm aware of.

为了回答您的问题,DJwarehouse是我所知道的唯一其他购物车。

回答by Andrew

As mentioned above, Django-cart hasn't been updated in a long time so it is most likely not compatible with Django 1.0 and the more recent versions of Django. For that reason alone, I'd recommend sticking with something more recent.

如上所述,Django-cart 已经很长时间没有更新了,因此它很可能与 Django 1.0 和更新版本的 Django 不兼容。仅出于这个原因,我建议坚持使用更新的东西。

I'm biased because I'm a dev on Satchmo but I think the feeling of overkill with Satchmo is a bit overblown. You'll probably be surprised at all the things you think you'll want to do with your "simple cart." Soon it may not be so simple.

我有偏见,因为我是 Satchmo 的开发人员,但我认为 Satchmo 的矫枉过正的感觉有点夸大其词。您可能会对您认为要用“简单购物车”做的所有事情感到惊讶。很快,事情可能就不那么简单了。

Worst case, if Satchmo is too much you can yank out the parts you don't care about.

最坏的情况是,如果 Satchmo 太多了,您可以拉出您不关心的部分。

回答by Andrew

Seems that a new version of Django-cart has been released on 25th March. http://vaig.be/2009/03/django-cart-released.html

似乎 Django-cart 的新版本已于 3 月 25 日发布。http://vaig.be/2009/03/django-cart-released.html

Wonder how the new version fares with respect to Satchmo.

想知道新版本在 Satchmo 方面的表现如何。

回答by Lazybird

Satchmohas more features than django-cart. If you are looking for simple and lightweight shopping cart application, try django-cartonwhich is pretty similar to django-cart.

Satchmodjango-cart有更多的特性。如果您正在寻找简单轻便的购物车应用程序,请尝试与 django-cart 非常相似的django-carton

It helps with shopping cart operations such as adding and removing items. It's does not implement views, templates nor payment processing modules - you are free to build them your way. The cart lives in the session, not in the database. The cart items are arbitrary product objects so you can define your product model the way you want.

它有助于购物车操作,例如添加和删除项目。它不实现视图、模板或支付处理模块 - 您可以按照自己的方式自由构建它们。购物车存在于会话中,而不是数据库中。购物车项目是任意产品对象,因此您可以按照自己的方式定义产品模型。

回答by Lazybird

I am using django-cart and it is not really an app - it is a start of an app. There are no views, and it totals about 150 lines of code. There is no doc but it is pretty clear how to use most of it. I am a little unsure of the intention of ItemManager or how that is supposed to be used. Comparing it to Satchmo is like comparing a flea to an elephant. They are a little different.

我正在使用 django-cart,它并不是一个真正的应用程序 - 它是一个应用程序的开始。没有视图,总共约 150 行代码。没有文档,但很清楚如何使用其中的大部分内容。我有点不确定 ItemManager 的意图或应该如何使用它。将它与 Satchmo 进行比较就像将跳蚤与大象进行比较。他们有点不同。