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, sage59.80
Gross price calculator
1 × Bread knife 21 cm34.90
Variant price, property “blade”
Voucher WINTER10−9.47
Criterion: cart price ≥ 50.00
Shipping, DHL parcel0.00
Criteria: country DE, weight < 31 kg
Payment, PayPal0.00
Payment processor: lfs-paypal
Total85.23 €
incl. 19 % VAT, Germany13.61

Paid, confirmation mail sent

Every line on an order comes from a rule you set up in the management interface.

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.

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.

  • PriceCalculator decides how a product price is calculated.
  • PaymentMethodProcessor connects a payment provider.
  • ShippingMethodPriceCalculator calculates shipping costs.
  • Criterion decides 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.

  1. git clone https://github.com/diefenbach/lfs-starter.git myshop && cd myshop
  2. cp .env.example .env && uv sync
  3. uv run python manage.py migrate
  4. uv run python manage.py lfs_init
  5. uv run python manage.py createsuperuser
  6. uv 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,
]

Read the documentation

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.

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.