Skip to main content

citry-django

Citry and Django's template engines, composed.

from citry import Citry
from citry_django import CitryDjangoExtension

app = Citry(extensions=[CitryDjangoExtension()])
# settings.py
TEMPLATES = [{"BACKEND": "citry_django.backend.CitryTemplates", "APP_DIRS": True, ...}]
CITRY_APP = "myproject.app:app"

Any {% tag %} you can {% load %} in Django then works inside a Citry component, and Citry components work in your existing Django templates. Neither syntax changes, and the adapter names no tag: each engine's own parser decides what belongs to it.

See the repository README for the full picture, the limits, and how it works.

Optional extras

pip install citry-django[compressor]

Routes each component's CSS and JS through django-compressor, so assets are preprocessed (SCSS, Less, ...) and minified. See citry-django-compressor.

Download files

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

Source Distribution

citry_django-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

citry_django-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file citry_django-0.1.0.tar.gz.

File metadata

  • Download URL: citry_django-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for citry_django-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9f536e6b7af1acbaa3b3eab841dad976d3ddf1493569c22affa5e1c46476aff
MD5 bfa6aca87d63f8a9a16b951155933656
BLAKE2b-256 d4e186c95667230b19a67ead5122ba62dd5e5461c9b77f90b80000b57cb5f0d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for citry_django-0.1.0.tar.gz:

Publisher: publish.yml on joeyjurjens/citry-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citry_django-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: citry_django-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for citry_django-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02f9163d74b5cbb291b7141b91d3ba5066d7ce0f210af733e737115756550b25
MD5 d3c1e4941048a6795538b9afa8cb2dc8
BLAKE2b-256 f3a871fbbe2e4a737ee5a0e47c7f1174bc4fe31225e9e5004296b89be93d1b4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for citry_django-0.1.0-py3-none-any.whl:

Publisher: publish.yml on joeyjurjens/citry-django

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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