{ "info": { "author": "Oyvind Saltvik", "author_email": "oyvind.saltvik@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "======================\ndjango-shop-categories\n======================\n\nA extendable category app using django-mptt for django-shop.\n\n.. image:: https://travis-ci.org/fivethreeo/django-shop-categories.png?branch=master\n :target: https://travis-ci.org/fivethreeo/django-shop-categories\n\nInstallation\n------------\n\nFor the current stable version:\n\n:: \n \n pip install django-shop-categories\n \nFor the development version:\n\n::\n\n pip install -e git+git://github.com/fivethreeo/django-shop-categories.git#egg=django-shop-categories\n\nRunning tests:\n\n::\n\n git clone git://github.com/fivethreeo/django-shop-categories.git\n cd django-shop-categories\n virtualenv test_env\n source ./test_env/bin/activate\n pip install -r requirements.txt\n python runtests.py \n \nConfiguration\n-------------\n\nAdd ``shop_categories`` to ``settings.INSTALLED_APPS``.\n\nSet ``SHOP_PRODUCT_MODEL`` to ``shop_categories.models.defaults.product.default.CategoryProduct``.\n\nIn your urls.py add this **before** your shop patterns:\n\n::\n \n urlpatterns += patterns('',\n url(r'^catalog/', include('shop_categories.urls')),\n ) \n\nThen run:\n\n::\n\n manage.py syncdb\n\nExtending the Category model\n----------------------------\n\nIn your own app make a models dir with __init__.py and a category.py dir, like so:\n\n::\n\n app/models/__init__.py\n app/models/category.py\n\nNote: Do not import the model from category.py in __init__.py, the model should NOT be in a \"real\" models module as this will cause the overridden Category model to be defined twice. \n\nIn category.py:\n\n:: \n\n from django.db import models\n from shop_categories.models.defaults.category.base import ProductCategoryBase\n \n class Category(ProductCategoryBase):\n \n image = models.ImageField(upload_to='categoryimages/', null=True, blank=True)\n \n class Meta:\n abstract = False\n app_label = 'app'\n\nSet ``SHOP_CATEGORIES_CATEGORY_MODEL`` to ``app.models.category.Category``\n\nRegister your custom category model in admin.py:\n\n::\n\n from shop_categories.models import Category\n from shop_categories.admin import ProductCategoryAdmin\n\n admin.site.register(Category, ProductCategoryAdmin)\n\n\nThen, assuming your Product model is not already synced, run:\n\n::\n\n manage.py syncdb\n\nExtending the Product model\n----------------------------\n\nWhen extending Product models in your shop make sure they subclass from ``shop_categories.models.defaults.product.base.CategoryProductBase`` to add the Category Foreignkey and M2M fields.\n\nExample implementation\n----------------------\nAn example of a django-shop with django-shop-categories can be found here: https://github.com/fivethreeo/django-shop-example", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/fivethreeo/django-shop-categories/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-shop-categories", "package_url": "https://pypi.org/project/django-shop-categories/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-shop-categories/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/fivethreeo/django-shop-categories/" }, "release_url": "https://pypi.org/project/django-shop-categories/1.0/", "requires_dist": null, "requires_python": null, "summary": "A extendable category app using django-mptt for django-shop", "version": "1.0" }, "last_serial": 844906, "releases": { "0.8.beta.0": [ { "comment_text": "", "digests": { "md5": "14939a7be682a7c41f3d2f35b003052a", "sha256": "ce0c37c25359cb515dc554ffae26490a0a8291c52ef6eafd7dcb7241aa68ab3c" }, "downloads": -1, "filename": "django-shop-categories-0.8.beta.0.tar.gz", "has_sig": false, "md5_digest": "14939a7be682a7c41f3d2f35b003052a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8028, "upload_time": "2012-07-13T11:55:37", "url": "https://files.pythonhosted.org/packages/74/bc/ade5f1363ec3780c6a4cb2f9fc0d3a4ac04960ce901da5ccb5e4e8791adc/django-shop-categories-0.8.beta.0.tar.gz" } ], "0.8.beta.1": [ { "comment_text": "", "digests": { "md5": "c573e0f2855692e7da3b77096dbb0d68", "sha256": "8a87130fe12480ced7ded041cc63fdc50828ecf627c3797a6b28602f253134e4" }, "downloads": -1, "filename": "django-shop-categories-0.8.beta.1.tar.gz", "has_sig": false, "md5_digest": "c573e0f2855692e7da3b77096dbb0d68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8026, "upload_time": "2012-07-13T13:06:22", "url": "https://files.pythonhosted.org/packages/73/5f/6a67bd7508fdd6c19f47f75437aef64adf7e1c85a44028ccc84b70fd8120/django-shop-categories-0.8.beta.1.tar.gz" } ], "0.8.beta.2": [ { "comment_text": "", "digests": { "md5": "1a86ac098dad3944429cbb8bc1031871", "sha256": "a6bf29ef5ad901213f9ff4a1e59bae62372435db9ffa00f64ea2e9e1b8c21a0a" }, "downloads": -1, "filename": "django-shop-categories-0.8.beta.2.tar.gz", "has_sig": false, "md5_digest": "1a86ac098dad3944429cbb8bc1031871", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8081, "upload_time": "2012-07-13T13:52:38", "url": "https://files.pythonhosted.org/packages/1e/4b/2c0a003170fc397dbd08e35485d01f49b5bd4b3c65fb754cfce7b09c59ef/django-shop-categories-0.8.beta.2.tar.gz" } ], "0.8.beta.3": [ { "comment_text": "", "digests": { "md5": "c663572f9fe597cff7ea0f400bc05c15", "sha256": "4ccf59cf5b5040a42786c1dd0eaf92a3b4212ec0ae14ce08650dc36ccd9955fe" }, "downloads": -1, "filename": "django-shop-categories-0.8.beta.3.zip", "has_sig": false, "md5_digest": "c663572f9fe597cff7ea0f400bc05c15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18095, "upload_time": "2013-08-21T09:33:27", "url": "https://files.pythonhosted.org/packages/48/05/386c38887b88ffb837cbd44555fce1bcbdd176accefeb4777c2b689a49fb/django-shop-categories-0.8.beta.3.zip" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "6dd6590bb19c09915718304d0a7a3b4f", "sha256": "a07f2b1198081bacf7ff7efa333c2b30f6e3bcd42ee3868c8032e8e4f0eb52cc" }, "downloads": -1, "filename": "django-shop-categories-1.0.zip", "has_sig": false, "md5_digest": "6dd6590bb19c09915718304d0a7a3b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17605, "upload_time": "2013-08-21T09:34:06", "url": "https://files.pythonhosted.org/packages/89/d1/40d7d8200697372a2a09dbe89a6f47452d8708024a1c1fcbed6689c87942/django-shop-categories-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6dd6590bb19c09915718304d0a7a3b4f", "sha256": "a07f2b1198081bacf7ff7efa333c2b30f6e3bcd42ee3868c8032e8e4f0eb52cc" }, "downloads": -1, "filename": "django-shop-categories-1.0.zip", "has_sig": false, "md5_digest": "6dd6590bb19c09915718304d0a7a3b4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17605, "upload_time": "2013-08-21T09:34:06", "url": "https://files.pythonhosted.org/packages/89/d1/40d7d8200697372a2a09dbe89a6f47452d8708024a1c1fcbed6689c87942/django-shop-categories-1.0.zip" } ] }