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.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for newscenter-1.0.3.tar.gz
Algorithm Hash digest
SHA256 52b65312a6b471f2026cc830b038ceb93ccebb7cb9d97d6011a7081f3bc7f0f5
MD5 0375f75ce9b83f13f5b578be866636aa
BLAKE2b-256 e3b8aea889d5164930f28d2be6c7c47684c0064aa5f070c3d4d06b22d34e26fb

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