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.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 lfs-theme 1.0.1
File Size Uploaded Provenance Actions
lfs_theme-1.0.1.tar.gz 885.6 kB Without provenance Details for lfs_theme-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / lfs_theme-1.0.1.tar.gz

Download URL lfs_theme-1.0.1.tar.gz
Size 885.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ab0a747aa2356545d1db6350b717a6f848615644b11ddd0f651b33f0b22c505
BLAKE2b-256 checksum
How to use checksums
f1999b6f7c93a55d0821e4d56e851d0c4115f0163e05f7c5476064998403126f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

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

Download URL lfs_theme-1.0.1-py3-none-any.whl
Size 984.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea32c0a729bac11357a68a39941a20c0054f9e9050c831133f272d031089a415
BLAKE2b-256 checksum
How to use checksums
48b55209961d022feddf01f191875f430c12e5378f351a80b33328b75218bb49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

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

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