Skip to main content

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.

Django 1.5 and up

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:

url(r’^newscenter/’, include(‘newscenter.urls’)),

Run:

manage.py syncdb (or manage.py migrate if you’re using south) and manage.py collectstatic

Dependencies

The following will be installed automatically if you use pip to install newscenter:

Pillow (http://python-pillow.github.io/)

easy-thumbnails (https://github.com/SmileyChris/easy-thumbnails)

feedparser (http://pythonhosted.org/feedparser/)

For easy-thumbnails, you’ll also need to add it to INSTALLED_APPS and run syncdb or migrate:

‘easy_thumbnails’,

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

This version

1.2.5

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.2.5.tar.gz (66.7 kB view details)

Uploaded Source

File details

Details for the file newscenter-1.2.5.tar.gz.

File metadata

  • Download URL: newscenter-1.2.5.tar.gz
  • Upload date:
  • Size: 66.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for newscenter-1.2.5.tar.gz
Algorithm Hash digest
SHA256 7b0ef43c6b4db5fb0cf713d5a0fedefabde5c5774102d6d7a41fe398d3c998a5
MD5 a7ddeff5c120314d8232d7e2ea604ee6
BLAKE2b-256 f406cdaa7bb9ab8905967c4e65c7fe02ccde1330d4a7d0c04274f5d4750efd6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page