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.0

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.0
File Size Uploaded Provenance Actions
django_lfs-1.2.0.tar.gz 7.5 MB Without provenance Details for django_lfs-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.4 MB

Release files / django_lfs-1.2.0.tar.gz

Download URL django_lfs-1.2.0.tar.gz
Size 7.5 MB
Tags Source
SHA-256 checksum
How to use checksums
93b144b8bd8adc35dc31e8e9df2f3a0ad71d6990606c0111d75b52fbd6830442
BLAKE2b-256 checksum
How to use checksums
05f757028f6347cd7a90f2be7c045697118d300b6342560fb51b8d7973c18e3d
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.0-py3-none-any.whl

Download URL django_lfs-1.2.0-py3-none-any.whl
Size 7.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ff8b09aa5184ab66b5ebe3970595c696092c36b7196fbeb7b65d999750bc97e3
BLAKE2b-256 checksum
How to use checksums
586da5c132a25a0a47d5f6e958f72d2fcdda592fa147a98996273a8e2e6ef92c
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.0

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.0 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