Install & Compatibility
Where this runs
tested against v4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 279.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 12.6s · import 0.000s · 280MB
247MB installed
● package 247MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
get_version
✓ from oscar import get_version
✗ from oscar import OscarConfig
VERSION
✓ from oscar import VERSION
INSTALLED_APPS
✓ from oscar import INSTALLED_APPS
Initialize Oscar in a Django project (requires existing Django project with django-oscar installed). See official docs for full setup.
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings')
import django
django.setup()
from oscar import OscarConfig
OscarConfig.default_app_config = 'oscar.apps.OscarConfig'
# For a full project, use `oscar startproject myproject`
Upgrade
Version history
4.1latest on PyPI · released Oct 29, 2025
Audit
Dependencies
djangorequiredRequired runtime dependency
django-oscar-apioptionalREST API extension (optional)
sorl-thumbnailoptionalImage thumbnail support (optional but commonly used)