This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django shopping cart application

INSTALLATION

Install Package

$ pip install -e 'git+git://github.com/serdarakarca/django-fastcart.git#egg=django-fastcart'

Settings

Add to INSTALLED_APPS:
'fastcart',
Add to MIDDLEWARE_CLASSES:
'fastcart.middleware.CartMiddleware',
Add to TEMPLATE_CONTEXT_PROCESSORS:
'fastcart.context_processors.cart',
Finally add this line to settings and change your model to carry with fastcart:
FASTCART_PRODUCT_MODEL = 'product.Book'

Add urls

url(r'^cart/', include('fastcart.urls')),

Migrate or syncdb

If you use south migrate:
$ ./manage.py migrate fastcart
or
$ ./manage.py syncdb

Usage:

Add a product to cart:

<form action="{% url 'fastcart_cart_item_list' %}" method="post">{% csrf_token %}
  <input type="hidden" name="product" value="{{ book.pk }}">
  <input type="submit" value="Add to cart">
</form>

Remove a product from cart:

<form action="{% url 'fastcart_cart_item_delete' object.pk %}" method="post">
  {% csrf_token %}
  <input type="submit" value="Delete">
</form>

Update quantity:

<form action="{% url 'fastcart_cart_item_update' object.pk %}" method="post">
  {% csrf_token %}
  <input type="text" name="quantity" value="{{ object.quantity }}">
  <input type="submit" value="Update">
</form>
Release History

Release History

1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting