djangoopen-sourceecommercesoftware-development

Introducing: django-oscar-wagtail

2 min read

Introducing: django-oscar-wagtail

--

One module we have created some time ago, django-oscar-wagtail, deserves some attention. The module is an integration app that allows Oscar Commerce developers to add a mature CMS system to their applications, and Wagtail CMS developers to add a powerful e-commerce engine to their platforms.

We have been using Oscar Commerce and Wagtail CMS for several years. Usually for different types of projects; Oscar for complex e-commerce cases and Wagtail for content-heavy sites.

Whenever an e-commerce site required CMS pages, we either used Oscar’s built-in CMS features, or built some custom models to facilitate simple CMS features. This was a solution to some extent, but we felt we were not delivering the CMS features that we would like to, plus we were creating stuff that already exists in Wagtail.

Enter Oscar vs. Wagtail

Therefore, after some experience with Wagtail for non-ecommerce sites, we started investigating wether it was possible to combine these two powerful Django projects and leverage both of them for a single application.

It turns out this was pretty straightforward to achieve, because both projects use django-treebeard for building either the catalogue tree, or the page tree. So what we basically did was exchange Oscars built-in catalogue-tree, with the Wagtail page-tree!

In short, this made it possible to manage any Oscar category as a Wagtail page, and add Oscar products to any Wagtail page as well, via a neat product selector.

Getting started

Please have a look at the README in the git repository! And PR’s welcome of course!

Tags used in this article:
djangoopen-sourceecommercesoftware-development