Skip to main content

An ultra simple app to manage products in a catalog (portfolio for example).

Project description

An simple app to manage the products in a catalog (portfolio for example)

[under development …]

Requirements

  • Django 1.11

  • django-mptt 0.8.7

  • Pillow 4.2.1

  • django-extensions 1.9.1

Quick start

  1. Add “product_catalog” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'product_catalog',
        'mptt',
        'django_extensions',
    ]
  2. Include the product_catalog URLconf in your project urls.py like this:

    url(r'^catalog/', include('product_catalog.urls'))
  3. Run python manage.py migrate to create the product_catalog models.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to create a product / categories (you’ll need the Admin app enabled).

  5. Visit http://127.0.0.1:8000/catalog/ .

Optional

if you want to use front-end product management, you must add product_catalog.context_processors.product_front_management to the context_processors:

TEMPLATES = [
    {
        [...]
        'OPTIONS': {
            'context_processors': [
                [...]
                'product_catalog.context_processors.product_front_management'
            ],
        },
    },
]

Settings parameters

  • PRODUCT_CATALOG_PAGINATION

    Default value: 10 Integer used to paginate the products.

  • PRODUCT_CATALOG_PRODUCT_BASE_MODEL

    Default value: ‘product_catalog.models.product_abstract.AbstractProduct’ String defining the base model path for the Entry model.

  • PRODUCT_CATALOG_UPLOAD_TO

    Default value: ‘uploads/product_catalog/%Y/%m/%d/’ Path to upload image

# Add / Update / Delete on front settings

  • PRODUCT_CATALOG_FRONT_MANAGEMENT

    Default value: True If ‘True’ allow to manage (create/update/delete) products in front. False to deactivate

  • PRODUCT_CATALOG_PERMISSION_OPTIONS_SUPERUSER = 0

  • PRODUCT_CATALOG_PERMISSION_OPTIONS_STAFF = 1

  • PRODUCT_CATALOG_PERMISSION_OPTIONS_OWNER = 2

  • PRODUCT_CATALOG_ACCESS_PERMISSION

    Default value: PRODUCT_CATALOG_PERMISSION_OPTIONS_OWNER

  • PRODUCT_CATALOG_FORM_FIELDS

    Default value: [‘title’, ‘status’, ‘excerpt’, ‘content’, ‘categories’, ‘image’] list of available fields in update and create product form

  • PRODUCT_CATALOG_FORM_UPDATE_FIELDS

    Default value: FORM_FIELDS list of available fields in update product form

  • PRODUCT_CATALOG_FORM_CREATE_FIELDS

    Default value: FORM_FIELDS list of available fields in create product form

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-product-catalog-0.1.0.tar.gz (19.4 kB view details)

Uploaded Source

File details

Details for the file django-product-catalog-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-product-catalog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ef46c78aae88da49ac1ee71622587f5f980d096325ecff3b4521980c9f559efc
MD5 21b3cad5e6c4ab0dc88cdce8eb121743
BLAKE2b-256 de8ae12184c3c677c354df90ce7f44b4c3465f63d20ad618dbd7d7158324fe1b

See more details on using hashes here.

Supported by

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