Skip to main content
https://travis-ci.org/LabD/django-oscar-wagtail.svg?branch=travis

This project integrates the Wagtail CMS with Django Oscar for eCommerce. It adds the following features:

  • each Oscar category page can now be managed by the Wagtail CMS

  • it is possible to add product lists to wagtail pages

Installation

Presuming you have installed Django-Oscar and Wagtail into your Django project.

First install django-oscar-wagtail via PIP:

pip install django-oscar-wagtail

And add oscar_wagtail to your settings as follows:

INSTALLED_APPS = [
    # ... your other apps
    'oscar_wagtail',
]

Fork the catalogue app as described in the oscar documentation. Then instead of using the AbstractCategory from Oscar use the one from this project as follows:

from oscar_wagtail.abstract_models import AbstractCategory


class Category(AbstractCategory):
    pass

from oscar.apps.catalogue.models import *

If you want to have a CMS button in the Oscar dashboard, add the following to your settings:

OSCAR_DASHBOARD_NAVIGATION.insert(1, {
    'label': 'CMS',
    'icon': 'icon-th-list',
    'url_name': 'wagtailadmin_home',
    'access_fn': lambda user, *args: user.has_perm('wagtailadmin.access_admin')
})

Download files

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

Source Distribution

django-oscar-wagtail-0.0.5.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_oscar_wagtail-0.0.5-py2.py3-none-any.whl (14.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-oscar-wagtail-0.0.5.tar.gz.

File metadata

File hashes

Hashes for django-oscar-wagtail-0.0.5.tar.gz
Algorithm Hash digest
SHA256 722ab2e63364ffc6a1549d250c0883f53de22859ecdda60a208d449eceef6ee8
MD5 1ef05044255d761c34c26d2bc48c1308
BLAKE2b-256 dc7a9a46d93096e746d2eb1145a7e0e953a9720b57ebd877ec240cd5c2ca3ea6

See more details on using hashes here.

File details

Details for the file django_oscar_wagtail-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_oscar_wagtail-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 25034b07f7cf41fd4614f3ed749a404d42430d6f4b3161ff6deb085cf11d8179
MD5 c30a0570f278f94a3dc522062535a344
BLAKE2b-256 e9be0f56f3b029acfbfc41ef1d6431ba5454b013edc33029c69af63536fa0af7

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