A News Release Application for Django
Project description
A Django application for creating news releases which can be associated with unique newsroom objects.
A Django CMS apphook is included as well as a templatetag for rendering news release headlines in non-application templates.
Installation
- Add newscenter to your python path:
$ pip install newscenter
- Add the following to the INSTALLED_APPS of your project’s settings.py:
‘newscenter’,
- In your urls.py, add:
(r’^news/’, include(‘newscenter.urls’)),
- Run:
syncdb and collectstatic
Template Tag
The template tag can be used like this:
{% load newscenter_tags %} {% get_news "newsroom-name" %} <h1><a href="{{ newsroom.get_absolute_url }}">{{ newsroom.name }}</a></h1> {% for release in featured_list %} <article> <h2>{{ release.title }}</h2> <p class="teaser">{{ release.teaser }}</p> <p><a href="{{ release.get_absolute_url }}">Read more</a></p> </article> {% endfor %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
newscenter-1.0.2.tar.gz
(64.1 kB
view hashes)