Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-oscar and multitenancy

I am researching Django Oscar for the ecommerce part of our business. One of the required features is that we need to host multiple shops on one Oscar instance, i.e. every shop owner should manage his own products, his own partners etc. And should not have access to other owner's content.

Google says it had this feature as of version 0.6: https://django-oscar.readthedocs.io/en/releases-0.6/howto/multi_dealer_setup.html

But the current version (1.5 as of today) does not mention this feature. How to do multitenancy in later Oscar versions?

like image 796
kurtgn Avatar asked Sep 19 '25 19:09

kurtgn


1 Answers

Oscar is great! I'm using the "multiple dealers" as described in here https://django-oscar.readthedocs.io/en/releases-0.6/howto/multi_dealer_setup.html

Until now I don't know another solution for multi-vendor.

Cheers,

EDIT

The multiple dealers support is now possible in Oscar 0.6 without any code changes, and called "permission-based dashboard". It's documented here: http://django-oscar.readthedocs.org/en/latest/ref/apps/dashboard.html

"Staff users (users with is_staff==True) get access to all views in the dashboard. To better support Oscar’s use for marketplace scenarios, the permission-based dashboard has been introduced. If a non-staff user has the partner.dashboard_access permission set, they are given access to a subset of views, and their access to products and orders is limited."

like image 73
João Sizílio Avatar answered Sep 22 '25 11:09

João Sizílio