This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

News application. Allow to publish news on site. You can show news archive,calendar block, or latest news block in template. Admin editor compatible with django-tinyMCE.

Project Description

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

Release History

Release History

This version
History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
redsolutioncms.django-easy-news-0.2.4.tar.gz (74.4 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting