- About Pinax
- Important Links
- Overview
- Documentation
- Change Log
- Contribute
- Code of Conduct
- Connect with Pinax
- License
Pinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. This collection can be found at http://pinaxproject.com.
Where you can find what you need:
- Releases: published to PyPI or tagged in app repos in the Pinax GitHub organization
- Global documentation: Pinax documentation website
- App specific documentation: app repos in the Pinax GitHub organization
- Support information: SUPPORT.md file in the Pinax default community health file repo
- Contributing information: CONTRIBUTING.md file in the Pinax default community health file repo
- Current and historical release docs: Pinax Wiki
pinax-testimonials
is a well tested, documented, and proven solution
for any site wanting to display testimonials.
Testimonials contain text by an author with an optional organization affiliation. For display, testimonials are retrieved randomly or most recent first.
Django / Python | 3.6 | 3.7 | 3.8 |
---|---|---|---|
2.2 | * | * | * |
3.0 | * | * | * |
To install pinax-testimonials:
$ pip install pinax-testimonials
Add pinax.testimonials
to your INSTALLED_APPS
setting:
INSTALLED_APPS = [
# other apps
"pinax.testimonials",
]
There are several templatetags which return active testimonials.
Assuming pinax-testimonials tags are loaded via {% load pinax_testimonials_tags %}
in your template,
use the following template tags:
Returns a single random testimonial.
{% random_testimonial as quote %}
Returns testimonials ordered randomly.
{% random_testimonials as quotes %}
or
{% random_testimonials <number> as quotes %}
Optional number
indicates how many testimonials to show. If number
is not specified this tag returns all active testimonials.
Returns testimonials ordered by date added.
{% testimonials as quotes %}
or
{% testimonials <number> as quotes %}
Optional number
indicates how many testimonials to show. If number
is not specified this tag returns all active testimonials.
{% testimonials as quotes %}
{% for quote in quotes %}
<p class="lead">
{{quote.text}}
{{quote.author}}
</p>
{% endfor %}
Add and manage testimonial quotes via the Django admin console.
- Drop Django 1.11, 2.0, and 2.1, and Python 2,7, 3.4, and 3.5 support
- Add Django 2.2 and 3.0, and Python 3.6, 3.7, and 3.8 support
- Update packaging configs
- Direct users to community resources
- Make
number
parameter optional intestimonials
templatetag - Add unit test to verify all active testimonials are returned
- Add django>=1.11 to requirements
- Update requirements for Django 2.0
- Update CI config
- Add sorting guidance for 3rd-party app imports
- Improve documentation markup
- Remove doc build support
- fix LONG_DESCRIPTION again
- fix setup.py LONG_DESCRIPTION for PyPi
- Standardize documentation layout
- Drop Django v1.8, v1.10 support
- Add Django 2.0 compatibility testing
- Drop Django 1.9 and Python 3.3 support
- Convert CI and coverage to CircleCi and CodeCov
- Add PyPi-compatible long description
- Move documentation to README.md
- Update this change log
- Documentation updates
- Rename templatetags file to match Pinax convention
- Add tests
- Add initial migration
- Update documentation
- Updated template tags to use
assignment_tags
- Added bulk operations to admin to mark testimonials as active/inactive
- Renamed from
marturian
topinax-testimonials
during the donation from Eldarion to Pinax
- Fixed documenation bug
- Added a template tag for fetching a single random quote
- Fixed bug introduction with last bug fix.
- Fix bug where the random query select would make it hard to use queryset in a template using index accessors.
- Fixed a typo in the model name
- initial release
Contributing information can be found in the Pinax community health file repo.
In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a Code of Conduct. We ask you to treat everyone as a smart human programmer that shares an interest in Python, Django, and Pinax with you.
For updates and news regarding the Pinax Project, please follow us on Twitter @pinaxproject and check out our Pinax Project blog.
Copyright (c) 2012-present James Tauber and contributors under the MIT license.