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.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

django_oscar_wagtail-0.1.1-py2.py3-none-any.whl (14.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-oscar-wagtail-0.1.1.tar.gz
Algorithm Hash digest
SHA256 32e0bb5f6aeb6b17c1c33e231f665111ce1b3a13fec68c1e208f91e69bb48704
MD5 d7df966712cf0dc4d0959541ba6aca94
BLAKE2b-256 b141cdc18fda16d9c5de6af8fabbeac4cf7e3111bc4e0f5eaeb2bae332f5de38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_oscar_wagtail-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 393ff102fc78e4f850420767e83633d1295b2b4eb6311b5f50d43057d0cb1677
MD5 aef2bdae6dbb0e188e7738e9cea4b3e7
BLAKE2b-256 92455cc8374ee7c0ef936561e473c9a466e04e814dcf496ed06f79281f665433

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