Skip to main content
What is it?
===========

The default theme for LFS (django-lfs), an online shop based on Django: a responsive Bootstrap 5 storefront with
category navigation, live search, cart, and a three-step checkout.

Installation
============

Add ``lfs_theme`` to ``INSTALLED_APPS`` before the LFS apps, so its templates win, and include its URLs::

path("theme/", include("lfs_theme.urls")),

The mobile menu is then loaded when it is first opened, instead of being part of every page; without the URLs it is
part of every page.

Optional add-ons
================

The theme works without any optional add-on. When one is installed, the theme shows its parts automatically:

* lfs_carousel: image slider on the home page (Swiper is loaded only there)
* lfs_bulk_prices, lfs_samples: bulk discounts and free samples on the product page
* lfs_cookie_consent: cookie banner and a "Cookie settings" link in the footer
* lfs_gtm: Google Tag Manager and e-commerce events
* lfs_stripe: card payment fields in the checkout

Shop content
============

* Logo: the shop's image (Manage > Shop); without one the shop name is shown.
* Footer columns: the first three static blocks.
* Footer links (imprint, terms, privacy, ...): the actions of the group "Footer".
* Colours: ``static/lfs_theme/scss/_colors.scss``; other Bootstrap settings (fonts, radii, spacing): ``static/lfs_theme/scss/bootstrap-custom.scss``. Then ``npm run build:css``.

Development
===========

CSS and the vendored libraries (Bootstrap, Bootstrap Icons, Swiper, htmx) are built with npm::

cd lfs_theme
npm install
npm run build # vendor files and CSS
npm run build:css # theme CSS and Bootstrap, after changing the SCSS

Tests::

pytest lfs_theme/tests

License
=======

BSD (see LICENSE.txt). The vendored libraries in ``static/lfs_theme/vendor`` are MIT (Bootstrap, Bootstrap Icons,
Swiper) and 0BSD (htmx).

Metadata

Release files for lfs-theme 1.0.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 lfs-theme 1.0.0
File Size Uploaded Provenance Actions
lfs_theme-1.0.0.tar.gz 885.9 kB Without provenance Details for lfs_theme-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lfs-theme 1.0.0
File Interpreter ABI Platform Actions
lfs_theme-1.0.0-py3-none-any.whl Python 3 none any Details for lfs_theme-1.0.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / lfs_theme-1.0.0.tar.gz

Download URL lfs_theme-1.0.0.tar.gz
Size 885.9 kB
Tags Source
SHA-256 checksum
How to use checksums
26527c7123a9d6ce40e77f6be253d3cf9bf180614e45fdb62d4bb33566968a2f
BLAKE2b-256 checksum
How to use checksums
138fcf74e6075631793b764bca4ae3603c5700b5665e44ab3592e83f64be4d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / lfs_theme-1.0.0-py3-none-any.whl

Download URL lfs_theme-1.0.0-py3-none-any.whl
Size 985.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
813b8c9a50d388fc44457c8969246aa03686cc31440ab802c18c7c45c0a9ad3b
BLAKE2b-256 checksum
How to use checksums
34253eb64af60b1a0e63bb41d28137516615053816cabbeba4e01d0d3fed2c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for lfs-theme 1.0.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.

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