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.3.tar.gz (2.1 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.3-py2-none-any.whl (11.1 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-oscar-wagtail-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b731b7a3f539396c284ab2da67094e5f4899b4d5717a45b656dcd7cf0a95eda6
MD5 1218a35ae30be2d4520f48f1e5aae170
BLAKE2b-256 59da0126aaff81cbac981bbe2864b9e41d481f6960cdbf5cda19e09442cd44be

See more details on using hashes here.

File details

Details for the file django_oscar_wagtail-0.0.3-py2-none-any.whl.

File metadata

File hashes

Hashes for django_oscar_wagtail-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 970920af2f0bd50a3345d090352e73c4f6e432bf8c96381898071da3a8c2e079
MD5 2cf298585af10e05accd9a7ce291a227
BLAKE2b-256 cf972522903b65ede8181e85e41a650a1b20967c9f0c383e88d70a336a04b68c

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