Skip to main content

A simple and extendable hierarchical category app for django.

Project description

Django Simple Category

A simple django category libaray

This simple libaray provide an abstract Category class for django whitch does not need MPTT support.

Feature overview

  • Abstract Category class

Install

    pip install django-simple-category

Usage

  1. Add "simple-category" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        'category',
    ]
    
  2. Inherit from the Category class like this:

    from simple_category.models import Category
    
    class MyCategory(Category):
        pass
    
  3. Run migrations to create your category models.

    python manage.py makemigrations
    python manage.py migrate
    

Project details


Download files

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

Source Distribution

django-simple-category-1.0.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page