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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-oscar-wagtail-0.0.3.tar.gz.
File metadata
- Download URL: django-oscar-wagtail-0.0.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b731b7a3f539396c284ab2da67094e5f4899b4d5717a45b656dcd7cf0a95eda6
|
|
| MD5 |
1218a35ae30be2d4520f48f1e5aae170
|
|
| BLAKE2b-256 |
59da0126aaff81cbac981bbe2864b9e41d481f6960cdbf5cda19e09442cd44be
|
File details
Details for the file django_oscar_wagtail-0.0.3-py2-none-any.whl.
File metadata
- Download URL: django_oscar_wagtail-0.0.3-py2-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970920af2f0bd50a3345d090352e73c4f6e432bf8c96381898071da3a8c2e079
|
|
| MD5 |
2cf298585af10e05accd9a7ce291a227
|
|
| BLAKE2b-256 |
cf972522903b65ede8181e85e41a650a1b20967c9f0c383e88d70a336a04b68c
|