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.4.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.4-py2-none-any.whl (11.1 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-oscar-wagtail-0.0.4.tar.gz
Algorithm Hash digest
SHA256 39e730a125a7999a172139fc74a8daf30a73d611ecc7f190718313969236185a
MD5 623839a95b27c96a1a11ba957600678a
BLAKE2b-256 d85d398c2e219efba1325cf1a484f3dbf0debba4c1cef6a3040db852393c78da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_oscar_wagtail-0.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 2b5b7a816619bcf4aac9395474cc43a42d6a56930e7c0719610bcec46de9aa48
MD5 22b2667da42fad7b144c823f1efdb2a6
BLAKE2b-256 9c81ffd5395b9a45aee74532a36612383feec7c6ee786ab9afe9fab2e0ddc24d

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