skip to navigation
skip to content

django-shop-categories 0.8.beta.2

A extendable category app using django-mptt for django-shop

Latest Version: 1.0

A extendable category app using django-mptt for django-shop.


For the current stable version:

pip install django-shop-categories

For the development version:

pip install -e git+git://


Add shop_categories to settings.INSTALLED_APPS.

Set SHOP_PRODUCT_MODEL to shop_categories.models.default.product.default.CategoryProduct.

In your add this before your shop patterns:

urlpatterns += patterns('',
    url(r'^catalog/', include('shop_categories.urls')),

Then run: syncdb


In your own app make a models dir with and a dir, like so:



from django.db import models
from shop_categories.models.defaults.category.base import ProductCategoryBase

class Category(ProductCategoryBase):

    image = models.ImageField(upload_to='categoryimages/', null=True, blank=True)

    class Meta:
        abstract = False
        app_label = 'app'

Set SHOP_CATEGORIES_CATEGORY_MODEL to app.models.category.Category

Then, assuming your Product model is not already synced, run: syncdb

When extending Product models in your shop make sure they subclass from shop_categories.models.defaults.product.base.CategoryProductBase

File Type Py Version Uploaded on Size
django-shop-categories-0.8.beta.2.tar.gz (md5) Source 2012-07-13 7KB