Skip to main content

django-lfs

CI Coverage PyPI Python versions Django versions Documentation Website

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

Features

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.

Architecture

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.

Requirements

  • Python 3.12 or newer

  • Django 5.2 (LTS)

  • A database supported by Django; PostgreSQL is used in production

Installation

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.

Documentation

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.

Tests

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.

Contributing and support

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.

License

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 with license_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

Metadata

Release files for django-lfs 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-lfs 1.2.1
File Size Uploaded Provenance Actions
django_lfs-1.2.1.tar.gz 7.5 MB Without provenance Details for django_lfs-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-lfs 1.2.1
File Interpreter ABI Platform Actions
django_lfs-1.2.1-py3-none-any.whl Python 3 none any Details for django_lfs-1.2.1-py3-none-any.whl

Total release size: 15.4 MB

Release files / django_lfs-1.2.1.tar.gz

Download URL django_lfs-1.2.1.tar.gz
Size 7.5 MB
Tags Source
SHA-256 checksum
How to use checksums
163b7d877c362d782cf2fb37d69c99e5eb057b808a5a1bb6cf83d0bf3b0f4798
BLAKE2b-256 checksum
How to use checksums
57de9afccd45866b993c18dcfdf2008d2c0f5415cd3b38edfda8e6b9ebd87257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / django_lfs-1.2.1-py3-none-any.whl

Download URL django_lfs-1.2.1-py3-none-any.whl
Size 7.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2cad72aa481cb3e8d3e4d9bfa8dac6f7f1ac653416a2a66d92c0aeff97491a67
BLAKE2b-256 checksum
How to use checksums
bebd4ba36cabca4511c7934802d1e4f8197e161b42967e0ede198c736976c894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for django-lfs 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page