Skip to main content

django-easy-news

Application provides news functionality for your site.

Installation:

In settings.py:

  1. Add easy_news to your INSTALLED_APPS.

  2. Include ('easy_news.urls') in your urls.py like this:

    urlpatterns += patterns('',
        (r'^news/', include('easy_news.urls')),
    )

Usage

Views

Easy news uses django generic views system to render pages. Easy news has several url handlers (I mean named patterns):

  • news_detail - Show news itself

  • news_list - if settings.ENABLE_NEWS_LIST is True, shows list of publicated news

  • news_archive_index if news_settings.ENABLE_NEWS_ARCHIVE_INDEX is True, shows content of django.views.generic.date_based.archive_index view

  • news_archive_year, news_archive_month, news_archive_day - if settings.ENABLE_NEWS_DATE_ARCHIVE is True, shows news archive by given date

  • news_tag_detail - if you use django-tagging and settings.NEWS_TAGGING is True, easy_news provide list of tagged news

Template tags:

If you want to use easy_news template tags, load easy_news_tags:

{% load easy_news_tags %}

show_news

Shows list of num latest news. 5 news in list by default:

{% show_news <num> %}

calendar

Render calendar. If there’s some news at date, shows hyperlink to news. By default, use current date:

{% calendar <year> <month> %}

Customize:

Full settings list:

  • ENABLE_NEWS_LIST (boolean) - render latest news list. Default - True

  • ENABLE_NEWS_ARCHIVE_INDEX (boolean) - render django generic date archive index of news objects. Default - True

  • ENABLE_NEWS_DATE_ARCHIVE (boolean) - render django generic date full archive of news objects. Default - True

  • NEWS_TAGGING (boolean) - use news tagging. Default - if django-tagging is installed, True, otherwise False

HISTORY:

0.2.3: Added haystack compatibility

Classifiers:

Frontpage handlers

Metadata

Release files for redsolutioncms.django-easy-news 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redsolutioncms.django-easy-news 0.2.4
File Size Uploaded Provenance Actions
redsolutioncms.django-easy-news-0.2.4.tar.gz 74.4 kB Without provenance Details for redsolutioncms.django-easy-news-0.2.4.tar.gz

Release files / redsolutioncms.django-easy-news-0.2.4.tar.gz

Download URL redsolutioncms.django-easy-news-0.2.4.tar.gz
Size 74.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5e185ebeafa2be196e54c04ffa9103505b2ce9fff664cdaa2b9665180bf34e
BLAKE2b-256 checksum
How to use checksums
da59e3079f7bc804c586a8b12b6c125338c28083835657ad83ca67a8cf778114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for redsolutioncms.django-easy-news 0.2.4

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.

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