Skip to main content

Django ESV

A Django Inlines style inline and a template tag to work with the ESV Bible API.

Right now all they do is return the (x)html snippet provided by the ESV API and provide clean ways to tweak the options.

Template tag:

{% load esv %}
{% passage reference [headings on] [audio off] [footnotes on] %}

Where reference is a string that the ESV can use as a query, or an context var that resolves to such a string.

Examples:

{% passage "Genesis 1:1" %}
{% passage "rom 3" %}
{% passage "1 tim 3-4" footnotes on %}

Inline:

{{ passage reference [headings=on] [audio=off] [footnotes=on] }}

Examples:

{{ passage John 1 }}
{{ passage John 2:1-3:18 footnotes=on }}
{{ passage jhn 2 matt 3 }}

Configuration

django_esv has a single optional setting. Which controls where and how httplib2 stores it’s http cache. It defaults to:

ESV_HTTP_CACHE = '/tmp/esv_http_cache'

WARNING!

The ESV client doesn’t yet do any caching besides standard HTTP caching. You’ll want to do output caching or wait for a real cache solution in django_esv.

Dependencies

Release files for django_esv 0.8.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 django_esv 0.8.1
File Size Uploaded
django_esv-0.8.1.tar.gz 4.8 kB Details

Release files / django_esv-0.8.1.tar.gz

Download URL django_esv-0.8.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa8cbb66491f194df9a8b524dfa241edd932017849b535a024bd737c60c171b3
BLAKE2b-256 checksum
How to use checksums
4912120412b33c8e36d86f4418f1e2ab1fd564ea70ed4a91a860834db377e13f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.8.1 This release

1 release file

0.8

1 release file

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