Skip to main content

Django app to create multilingual sitemaps for PWA with ContentDB and FAQ support

Project description

django-sitemap

Multilingual XML sitemap and robots.txt generator for Volkanos PWAs — separate sitemaps per content type (products, categories, custom products, ContentDB pages, FAQ items), a sitemap index and a robots.txt per channel-domain. Supports language-scoped URL prefixes, alternate language links (hreflang) and optional language merging into a single file.

Installation

pip install entirius-django-sitemap

Add the app to your project:

INSTALLED_APPS = [
    ...
    "django_sitemap",
]

Soft integrations — install the matching extra to enable a generator (each degrades gracefully when absent):

pip install "entirius-django-sitemap[pim,contentdb,faq]"

Usage

python manage.py generate_sitemap {shop_idx}
python manage.py generate_sitemap {shop_idx} --languages en de fr

Configuration (service settings):

SITEMAP_URL_HOST = "https://shop.example.com"
SITEMAP_FORMAT_XML = True
SITEMAP_LIMIT = 2000            # max URLs per sitemap file
SITEMAP_ROOT_DIR = MEDIA_ROOT   # output root

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django, postgres via DATABASE_URL)

Architecture and model reference: AGENTS.md.

License

Mozilla Public License 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entirius_django_sitemap-4.0.1.tar.gz (142.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entirius_django_sitemap-4.0.1-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file entirius_django_sitemap-4.0.1.tar.gz.

File metadata

  • Download URL: entirius_django_sitemap-4.0.1.tar.gz
  • Upload date:
  • Size: 142.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for entirius_django_sitemap-4.0.1.tar.gz
Algorithm Hash digest
SHA256 b5547a9cb1336392cdaa569f8bb1645b39a811640ca3d33587015d145008147b
MD5 11a15c240560e9db9df460cf1ef5b1ab
BLAKE2b-256 11abfb54b628b22252d18a997bc288f939bfc8034fc00994c7e45e40ecded0bd

See more details on using hashes here.

File details

Details for the file entirius_django_sitemap-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: entirius_django_sitemap-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for entirius_django_sitemap-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55da4d3061baadc3fa84e1b334d921c1ff04bdc982a59230e87a8fdbf326e66b
MD5 8c995b35b9d9767f0053828cb83c0188
BLAKE2b-256 2b1729d98ea315febf736dbe1d1ca44311a9afcf48399f60d7542c2ab44b0a8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page