To use the E-Commerce service, you must configure both a partner and a site for the service to use. To configure a partner and a site, you use the Django administration panel.
The Site and Partner fields for the
SiteConfiguration model have a
unique together constraint. The model allows only one entry per site, per
partner. When you configure a site, make sure that only one partner is
associated with that site.
When you configure a partner, you specify a short code that serves as a unique
identifier for that partner. The system creates a partner object that
the Open edX platform uses when you perform tasks such as specifying a theme
for a site in the
To configure a new partner, follow these steps.
http://localhost:8002/admin/partner/partner/to view the partner model in the Django administration panel.
To configure a site, you use the edX
SiteConfiguration model that extends
the Django sites framework. With this model, you map domains to a Site
object, which consists of an ID and a name. You can also add and update themes
and payment processors for a site.
The edX E-Commerce service supports multitenancy. The multitenant implementation has one site per partner.
To configure a site, follow these steps.
Make sure that you have created and configured a partner for the site. For more information, see Create and Configure a Partner.
In a browser, go to
to open the Site configurations page in the Django administration panel.
On the Site configurations page, select Add site configuration.
For a devstack installation, for Site, leave the default value of
For any other installation, for Site, use the hostname under which your
service is running. For example, the hostname may be
For Partner, select the name of the institution that you want.
For LMS base url for custom site/microsite, enter
For Path to custom site theme, enter a path.
This field is required. If you do not have a custom site theme, enter
placeholder text in this field. For example, you could enter
For Payment processors, enter the names of the payment processor or processors for your site.