LFS 1.0 is out, on Django 5.2 LTS and Python 3.12+
The online shop for Django.
From the catalog to the paid order, with a management interface for the daily work. Prices, taxes, shipping and payment follow rules you configure, not changes to the core.
pip install django-lfs
Order 2026-00417
| 2 × Linen apron, sage | 59.80 |
| Gross price calculator | |
| 1 × Bread knife 21 cm | 34.90 |
| Variant price, property “blade” | |
| Voucher WINTER10 | −9.47 |
| Criterion: cart price ≥ 50.00 | |
| Shipping, DHL parcel | 0.00 |
| Criteria: country DE, weight < 31 kg | |
| Payment, PayPal | 0.00 |
| Payment processor: lfs-paypal | |
| Total | 85.23 € |
| incl. 19 % VAT, Germany | 13.61 |
Paid, confirmation mail sent
Since 2009 open source, BSD licensed
3,000+ commits 500 of them since 2025
2,500+ tests with pytest and Playwright
8 languages in shop and management
What a shop needs, included
- Catalog
- Categories, products with variants and properties, accessories, attachments, manufacturers and suppliers. Filterable product lists and a search.
- Prices and taxes
- Net and gross price calculation. Tax rates depend on the product and on the customer’s country.
- Shipping and payment
- Any number of methods, each with its own prices and delivery times. Criteria decide which ones a customer sees: cart value, country, weight, package size.
- Checkout and orders
- A one-page checkout, order states, and order mails.
- Marketing
- Vouchers, discounts, top sellers, featured products and product reviews.
- Content
- Pages, static blocks and portlets, so you build the shop’s pages without touching templates.
- SEO
- Structured data (JSON-LD), also for variants, canonical URLs, and a sitemap with products, categories and manufacturers.
- Languages
- Czech, Dutch, English, French, German, Italian, Polish and Spanish.
A management interface for the people who run the shop
Products, orders, customers and content in one place, built for the daily work rather than for developers. Rewritten for 1.0 with Bootstrap 5 and htmx, and tested in a real browser.
Exports for price comparison sites are part of it.
Screenshot: product management
Your rules stay out of the core
LFS is a regular Django project made of separate apps: lfs.catalog, lfs.cart, lfs.checkout, lfs.order, lfs.manage and more. If you know Django, you find your way around.
Where shops differ, LFS is pluggable. Write a class, register it in your settings, and pick it in the management interface.
PriceCalculatordecides how a product price is calculated.PaymentMethodProcessorconnects a payment provider.ShippingMethodPriceCalculatorcalculates shipping costs.Criteriondecides when a shipping method, payment method, discount or tax rate applies.
myshop/pricing.py
from lfs.gross_price.calculator import GrossPriceCalculator
class MemberPriceCalculator(GrossPriceCalculator):
"""Members of the trade group pay 10 % less."""
def get_price(self, with_properties=True, amount=1):
price = super().get_price(with_properties, amount)
user = self.request.user
if user.groups.filter(name="trade").exists():
return price * 0.9
return price
settings.py
LFS_PRICE_CALCULATORS = [
["lfs.gross_price.calculator.GrossPriceCalculator", _("Price includes tax")],
["myshop.pricing.MemberPriceCalculator", _("Member prices")],
]
Get started
A new shop
lfs-starter is a ready Django project with LFS, the default theme and the standard add-ons, configured through environment variables. You need Python 3.12+ and uv.
git clone https://github.com/diefenbach/lfs-starter.git myshop && cd myshopcp .env.example .env && uv syncuv run python manage.py migrateuv run python manage.py lfs_inituv run python manage.py createsuperuseruv run python manage.py runserver
The shop runs at 127.0.0.1:8000, the management interface at /manage/. Without PostgreSQL settings it uses SQLite.
An existing Django project
Install the package, add the apps of lfs.settings.LFS_APPS to INSTALLED_APPS with a theme such as lfs_theme before them, and include the URLs of lfs.core and lfs.manage.
INSTALLED_APPS = [
"lfs_theme",
...
*LFS_APPS,
]
Upgrading from 0.x
Back up the database and try the upgrade on a copy first. The release notes list the steps.
Add-ons
Themes and optional features are packages of their own. Install what the shop uses.
- lfs-themeThe default shop theme
- lfs-paypalPayPal payments
- lfs-stripeCard payments with Stripe
- lfs-bulk-pricesPrice tiers by quantity
- lfs-samplesFree product samples
- lfs-canonicalCanonical URLs
- lfs-cookie-consentConsent banner
- lfs-gtmGoogle Tag Manager with Consent Mode
- lfs-carouselImage carousel
Planning a shop or need an extension?
LFS is developed by IQ++. We build and run LFS shops for B2B and B2C, and write the add-ons a shop needs.