django-oscar
Django-Oscar is a domain-driven e-commerce framework for Django that lets you build custom online stores by selectively overriding core functionality. It's designed for both simple B2C sites and complex B2B applications with business-specific logic.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | django-oscar/django-oscar |
| Owner | django-oscar |
| Primary language | Python |
| License | BSD-3-Clause — OSI-approved |
| Stars | 6.6k |
| Forks | 2.3k |
| Open issues | 151 |
| Latest release | 4.1 (2025-10-29) |
| Last updated | 2026-07-08 |
| Source | https://github.com/django-oscar/django-oscar |
What django-oscar is
Oscar provides a modular Django application with customizable models, views, and business logic for e-commerce operations (catalog, basket, orders, payments). It ships with a sandbox reference implementation, integrates with multiple payment gateways via extensions, and supports both API-first and template-based frontends.
Get the django-oscar source
Clone the repository and explore it locally.
git clone https://github.com/django-oscar/django-oscar.gitcd django-oscar# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Plan for model customization early: Oscar models are designed to be subclassed; decide which core models (Product, Order, Basket, etc.) need extension before first deployment.
- Database schema will be substantial: Oscar creates 20+ tables for products, orders, shipping, and fulfillment; ensure migrations and scaling strategy are in place.
- Payment gateway integration is mandatory: Oscar ships no built-in payment processor; you must integrate an extension (Adyen, PayPal, Stripe via community packages, etc.) before handling real transactions.
- Admin dashboard requires configuration: The Oscar admin interface is powerful but requires customization for your domain; budget time for template and form tweaks.
- Testing complexity increases with customization: Oscar's service layer and model hooks mean integration tests are essential; plan for test suite growth as you override functionality.
When to avoid it — and what to weigh
- Need Headless-First Architecture — Oscar is tightly integrated with Django's ORM and template system. While django-oscar-api exists, it is a separate extension; Oscar core is not primarily a headless commerce engine.
- Require Out-of-the-Box PCI Compliance — Oscar handles order workflows but payment processing depends on third-party gateway integrations. PCI compliance is your responsibility; Oscar does not provide built-in tokenization or PCI handling.
- Looking for Minimal Overhead — Oscar adds considerable model and business logic to your Django project. If you need a lightweight cart-only library, consider smaller packages like django-cart or django-shop.
- Non-Python/Non-Django Stack — Oscar is Python/Django-only. If your team uses Node.js, .NET, or Go, or if you cannot run Django, this framework is incompatible.
License & commercial use
BSD-3-Clause (New/Revised): Permissive open-source license permitting commercial use, modification, and redistribution with attribution and liability disclaimer.
BSD-3-Clause is a permissive OSI-approved license that explicitly permits commercial use and closed-source derivatives. No license review required for commercial deployment. However, verify that any third-party extensions (payment gateways, etc.) you add also have compatible or permissive licenses.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Strong |
| License clarity | Clear |
| Deployment complexity | Moderate |
| DEV.co fit | Strong |
| Assessment confidence | High |
Oscar delegates payment data handling to third-party gateways (appropriate for PCI compliance). Core framework handles order/user workflows but does not provide built-in CSRF, XSS, or injection protection beyond Django's defaults—apply Django security best practices (middleware, form handling, SQL parameterization). Review any custom payment logic and extension code carefully. No public security audit data provided; unknown vulnerability history.
Alternatives to consider
Saleor (GraphQL/Headless)
Modern headless commerce with GraphQL API and no Django dependency; better for API-first or multi-frontend strategies. Heavier infrastructure (Node.js, Postgres required).
WooCommerce (WordPress)
Lower entry barrier for simple stores, massive plugin ecosystem, built-in hosting support. Less flexible for complex custom logic and non-WordPress environments.
Medusa (Node.js/Headless)
Node-based, API-first commerce engine with modern developer experience. Good fit if you're using JavaScript/TypeScript stack; incompatible if Django-locked.
Build on django-oscar with DEV.co software developers
Devco's Django and e-commerce experts can help you architect, customize, and deploy Django-Oscar for your business needs. Contact us for a technical review.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
django-oscar FAQ
Can I use Oscar with a React or Vue frontend?
Do I need to rewrite my models to use Oscar?
Is Oscar suitable for subscription or recurring billing?
What is the learning curve?
Work with a software development agency
Adopting django-oscar is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate open-source ecommerce software in production.
Ready to build a custom e-commerce platform?
Devco's Django and e-commerce experts can help you architect, customize, and deploy Django-Oscar for your business needs. Contact us for a technical review.