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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b641523b412040c8625d55f4056edc11b6d9652d568c84db0c6590e3467df7ba |
|
MD5 | af244f49038d8afe46d559de84b49d30 |
|
BLAKE2b-256 | fdddb732222983b64f008ec9c20211333ca06b8da514e5ea9031b90eeb4d7e2c |
Hashes for django_oscar_wagtail-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea1ceb44404551a437f0150ba5bbedfef58ec7f035dbe306115e3834c170c221 |
|
MD5 | 00828049304b42623cab71cd291a30ad |
|
BLAKE2b-256 | 2bbdea4ccff341ab1065036259735dd02ee7c1da378b73bb1aa09ceb870a9296 |