معرفی شرکت ها


django-carton-1.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

django-carton is a simple and lightweight application for shopping carts and wish lists.
ویژگی مقدار
سیستم عامل -
نام فایل django-carton-1.2.1
نام django-carton
نسخه کتابخانه 1.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده lazybird
ایمیل نویسنده go@lazybird.co
آدرس صفحه اصلی http://github.com/lazybird/django-carton/
آدرس اینترنتی https://pypi.org/project/django-carton/
مجوز Creative Commons Attribution 3.0 Unported
Django Carton - Shopping Cart and Wish List =========================================== :: +------+ /| /| +-+----+ | django-carton helps you build your shopping | | | | cart and which list functionality. | +----+-+ |/ |/ +------+ * It's simple: You decide how to implement the views, templates and payment processing. * It's lightweight: The cart lives in the session. * It's just a container: You define your product model the way you want. Usage Example ------------- View: :: from django.http import HttpResponse from carton.cart import Cart from products.models import Product def add(request): cart = Cart(request.session) product = Product.objects.get(id=request.GET.get('product_id')) cart.add(product, price=product.price) return HttpResponse("Added") def show(request): return render(request, 'shopping/show-cart.html') We are assuming here that your products are defined in an application called ``products``. Template: :: {% load carton_tags %} {% get_cart as cart %} {% for item in cart.items %} {{ item.product.name }} {{ item.quantity }} {{ item.total_price }} {% endfor %} You can also use this convinent shortcut: {% for product in cart.products %} {{ product.name }} {% endfor %} Documentation ------------- Read more: https://github.com/lazybird/django-carton/


نحوه نصب


نصب پکیج whl django-carton-1.2.1:

    pip install django-carton-1.2.1.whl


نصب پکیج tar.gz django-carton-1.2.1:

    pip install django-carton-1.2.1.tar.gz