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.0.tar.gz (137.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.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: entirius_django_sitemap-4.0.0.tar.gz
  • Upload date:
  • Size: 137.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.0.tar.gz
Algorithm Hash digest
SHA256 464ba13bf1ca0a26feb6bfae6605c9f4d257cd213c4e7f4bd3676b8100c9f1a4
MD5 190122a778a60684734e01eec7d7b175
BLAKE2b-256 f1948e29e47d429c997d105d8b765a540c8b11fcaf965609805427fda598e572

See more details on using hashes here.

File details

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

File metadata

  • Download URL: entirius_django_sitemap-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76e922efb53aafd42a54f136614d5bf83a3e3d0348461d25120008bd66cc060d
MD5 6578442ada8a29b6711c1492c3b403e2
BLAKE2b-256 ec75ee3a1b9c06de7890b2488d81198dc31c1818d3ddf5124d7b727ad7592cd0

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