Skip to main content

This companion applicatoin to django SHOP provides an example of how shop implementors could implement a simple category system.

It is perfectly usable as a simple category system.

In basic setup, you can select products on category admin page. If you want to set categories in product admin page, subclass ProductWithCategoryForm, set Meta option model to your product model, and set this form as your product form:

from shop_simplecategories.admin import ProductWithCategoryForm

class ProductForm(ProductWithCategoryForm):
    class Meta(object):
        model = Product

class ProductAdmin(admin.ModelAdmin):
    form = ProductForm

For your convenience we have added a templatetag show_root_categories that outputs all root categories for you:

{% load shop_simplecategories_tags %}

<ul>{% show_root_categories %}</ul>

If you want to manipulate the output of that template tag, just override the template shop_simplecategories/show_root_categories.html

Metadata

Release files for django-shop-simplecategories 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-shop-simplecategories 0.0.5
File Size Uploaded Provenance
django-shop-simplecategories-0.0.5.tar.gz 6.9 kB Without provenance Details

Release files / django-shop-simplecategories-0.0.5.tar.gz

Download URL django-shop-simplecategories-0.0.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ae92a7a9394f4ee1de945c6a20c06ff05bc34921c851901f1ae2c380e0778e02
BLAKE2b-256 checksum
How to use checksums
789c87d04beeffafc5727953b4b8fda48049a0096439f551709b2ea42e744738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-shop-simplecategories 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page