This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A small shop for Django Framework

Project Description
Django Plugshop
===============

A set of useless abstract models

Requirements
============

1. [django](https://github.com/django/django/) >= 1.4, <=1.5
2. [django-mptt](https://github.com/django-mptt/django-mptt/)

Installation
============

* Add the `plugshop` directory to your Python path.

* Add `plugshop` to your `INSTALLED_APPS`

* Add the following middleware to your project's settings.py file:

`plugshop.middleware.CartMiddleware`

* Add the request context processor:

TEMPLATE_CONTEXT_PROCESSORS = (
# ...
'django.core.context_processors.request',
# ...
)

* Add URL-patterns:

urlpatterns = patterns('',
url(r'^shop/', include('plugshop.urls')),
)

* Override default models. Example:

PLUGSHOP_MODELS = {
'PRODUCT': 'myshop.Product',
'CATEGORY': 'myshop.Category',
'ORDER': 'myshop.Order',
}

* Run `python manage.py syncdb`

* Profit!

Configuration
=============

Models:

PLUGSHOP_MODELS = {
'PRODUCT': 'plugshop.Product',
'CATEGORY': 'plugshop.Category',
'ORDER': 'plugshop.Order',
'ORDER_PRODUCTS': 'plugshop.OrderProducts',
}

Forms:

PLUGSHOP_FORMS = {
'ORDER': 'plugshop.forms.OrderForm',
}

Config:

PLUGSHOP_CONFIG = {
'REQUEST_NAMESPACE': 'cart',
'SESSION_NAMESPACE': 'cart',
'URL_PREFIX': 'shop/',
}

Other options:

PLUGSHOP_OPTIONS = {
# Possible values of the status of the order. Default values:
'STATUS_CHOICES': (
(1, _('Created')),
(2, _('Confirmed')),
(3, _('Denied')),
(4, _('Shipped')),
(5, _('Completed')),
),
}

Cart
====

#views.py
def my_view(request):
cart = request.cart

Or

#settings.py
PLUGSHOP_CONFIG = {
...
'REQUEST_NAMESPACE': 'my_cart_namespace',
...
}

#views.py
def my_view(request):
cart = request.my_cart_namespace
Release History

Release History

This version
History Node

0.4.1

History Node

0.4.0.2

History Node

0.4.0.1

History Node

0.4.0

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.4.3

History Node

0.2.4.2

History Node

0.2.4.1

History Node

0.2.4

History Node

0.2.3.1

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_plugshop-0.4.1-py2.7.egg (45.6 kB) Copy SHA256 Checksum SHA256 2.7 Egg Dec 25, 2016
django-plugshop-0.4.1.tar.gz (15.7 kB) Copy SHA256 Checksum SHA256 Source Dec 25, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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