Skip to main content

# django-continue-reading Templatetag for truncating blog post bodies and adding a link that says “continue reading…” which redirects the user to the absolute url or full body of the post.

###Package

https://pypi.python.org/pypi/django-continue-reading

###Installation `$ pip install django-continue-reading`

Add the following to your INSTALLED_APPS section

'django_continue_reading' ###How it works…

If your blog application has a model object that has a title and body field

`title = models.CharField(max_length=250)`

`body = models.TextField()`

You can pass the post model object and number of words you would like to truncate your post at to this templatetag

`{% load continue_reading %}`

`{% continue_reading post 80 %}`

It will then truncate the number of words in your post body and append a link to the bottom

Lorem ipsum dolor sit amet consectetur adipiscing elit Cras enim erat fermentum ut diam vitae dapibus vulputate erat Vestibulum ut aliquet turpis sed ultricies mauris Nullam non felis vehicula dui vulputate mattis bibendum vitae ipsum Nam vel volutpat augue nec consectetur neque Mauris at vulputate erat Aliquam erat volutpat Pellentesque eleifend molestie magna nec efficitur neque faucibus nec Aliquam convallis ultricies lorem ut malesuada lectus luctus vel Quisque volutpat tincidunt leo a hendrerit Suspendisse condimentum velit odio nec mattis justo...

continue reading

The continue reading link will use the absolute_url of your post model object to redirect the user to the full thing.

Metadata

Release files for django-continue-reading 0.1.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-continue-reading 0.1.1
File Size Uploaded Provenance
django-continue-reading-0.1.1.tar.gz 4.6 kB Without provenance Details

Release files / django-continue-reading-0.1.1.tar.gz

Download URL django-continue-reading-0.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
435ee526ec9f3809dbf55e42bc4d590e110a9f8dac345d5db35eec4554742d21
BLAKE2b-256 checksum
How to use checksums
1389ed821f91e60ce51589fd1d7c02c14aff5ce8d7d466b791614b5b18f58b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-continue-reading 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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