Integration between Django Oscar and Wagtail
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-oscar-wagtail-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32e0bb5f6aeb6b17c1c33e231f665111ce1b3a13fec68c1e208f91e69bb48704 |
|
MD5 | d7df966712cf0dc4d0959541ba6aca94 |
|
BLAKE2b-256 | b141cdc18fda16d9c5de6af8fabbeac4cf7e3111bc4e0f5eaeb2bae332f5de38 |
Hashes for django_oscar_wagtail-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 393ff102fc78e4f850420767e83633d1295b2b4eb6311b5f50d43057d0cb1677 |
|
MD5 | aef2bdae6dbb0e188e7738e9cea4b3e7 |
|
BLAKE2b-256 | 92455cc8374ee7c0ef936561e473c9a466e04e814dcf496ed06f79281f665433 |