Skip to main content

Integration between Django Oscar and Wagtail

Project description

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')
})

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-oscar-wagtail-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-oscar-wagtail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 37b49eafc96b3112adfe989b1b5ca4283a3b0df3aa5b905cd288d56c4feb7b15
MD5 e279ccdfe43ed08764bf7f62bb0ca199
BLAKE2b-256 bd1a601d7105a3f396a8725fb4b0fd499d1f854887a434afaa65956e60e22fed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_oscar_wagtail-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 252031322688e650b8958d7802fd566d700c0061c0dd90e18527b5bef8912724
MD5 af78dde7ac32dfb3fbee92746bcfb6a2
BLAKE2b-256 497e10cdba1a81cc0d34c044238ca41207a2681396b1afa240cc8fe9ee444135

See more details on using hashes here.

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