LFS (Lightning Fast Shop) is an open source online shop built on Python and Django.
It covers the whole way from the catalog to the paid order and comes with its own management interface for the daily work in a shop. Prices, taxes, shipping and payment follow configurable rules instead of code changes in the core.
- Open source since 2009, more than 3,000 commits, BSD licensed
- In production in several B2B and B2C shops
- Actively developed: runs on Django 5.2 LTS and Python 3.12+, with more than 500 commits since 2025
- 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, and tax rates that depend on the product and on the customer's country.
- Shipping and payment
- Any number of shipping and payment methods with their own prices and delivery times. Criteria decide which methods a customer is offered, for example by cart value, country, weight or package dimensions.
- Checkout and orders
- A one-page checkout, order management with states, and order mails.
- Marketing
- Vouchers, discounts, top sellers, featured products and product reviews.
- Content
- Pages, static blocks and portlets to build the shop's pages without touching templates.
- SEO
- Structured data (JSON-LD), also for product variants, canonical URLs and a sitemap with products, categories and manufacturers.
- Management interface
- A dedicated interface for products, orders, customers and content, built with Bootstrap 5 and HTMX. Exports, for example for price comparison sites.
- Languages
- Translations for Czech, Dutch, English, French, German, Italian, Polish and Spanish.
LFS is a regular Django project made of separate apps (lfs.catalog,
lfs.cart, lfs.checkout, lfs.order, lfs.manage and others). If
you know Django, you will find your way around quickly.
Shops differ, so the parts that differ are pluggable. You write a class, register it in the settings, and keep your own requirements out of the core:
- Price calculators (
lfs.plugins.PriceCalculator) define how a product price is calculated. - Payment processors (
lfs.plugins.PaymentMethodProcessor) connect payment providers. - Shipping price calculators
(
lfs.plugins.ShippingMethodPriceCalculator) calculate shipping costs. - Criteria (
lfs.criteria.models.Criterion) decide when a shipping method, payment method, discount or tax rate applies.
- Python 3.12 or newer
- Django 5.2 (LTS)
- A database supported by Django; PostgreSQL is used in production
To try LFS, start the demo shop with Docker:
docker run --rm -p 8000:8000 ghcr.io/diefenbach/lfs
Then open http://localhost:8000/ for the shop and
http://localhost:8000/manage/dashboard/ for the management interface (user
admin, password admin). The image is for trying LFS only; see
lfs-docker.
For a real shop start from lfs-starter: a ready Django project with LFS, the default theme and the standard add-ons, configured through environment variables. To add LFS to an existing Django project instead, follow docs/introduction/installation.rst.
The documentation is part of this repository, in the docs folder, and is built with Sphinx (see docs/README.md). It explains the concepts, the management interface and how to extend LFS.
Parts of it still describe older releases and are being revised. If something does not match the code, the code is right; please open an issue.
LFS has more than 2,500 tests, written with pytest, pytest-django and
factory_boy. End-to-end tests in tests_e2e/ run whole journeys through the
shop and the management interface in a real browser with Playwright, for
example a manager adds a product and a visitor finds it in the shop. Run them
with bin/test-e2e; bin/test runs all other tests.
Themes and add-ons live in their own repositories:
- lfs-starter: a new shop, ready to run
- lfs-theme: the default shop theme
- lfs-paypal and lfs-stripe: payment providers
- lfs-bulk-prices: graduated prices
- lfs-samples: free samples of products
- lfs-canonical: canonical URLs
- lfs-cookie-consent and lfs-gtm: consent and tracking
- lfs-carousel: image carousel
LFS itself depends on lfs-order-numbers, lfs-contact, lfs-postal, django-portlets and django-reviews.
Bug reports and pull requests are welcome in the issue tracker.
LFS is developed by IQ++. If you plan a shop or need an extension, get in touch there.
BSD 3-Clause, see LICENSE.txt. The people who built LFS are listed in CREDITS.txt, the changes of each release in HISTORY.txt.
The management interface bundles third-party libraries in
lfs/manage/static/lfs/manage/vendor/:
- TinyMCE: GPL-2.0-or-later (
tinymce/license.md); LFS configures it withlicense_key: 'gpl'. A shop that distributes LFS with TinyMCE must follow the GPL, or use a commercial TinyMCE license. The source code of the bundled version (8.9.3) is at https://github.com/tinymce/tinymce/tree/8.9.3. - Bootstrap, Bootstrap Icons, flatpickr, SortableJS: MIT
- htmx: 0BSD