Skip to main content

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:

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

Run:

manage.py migrate

Collect static media:

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/)

django-el-pagination (https://django-el-pagination.readthedocs.io/en/latest/start.html)

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

‘easy_thumbnails’,

For django-el-pagination, you’ll also need to add it to INSTALLED_APPS:

‘el_pagination’,

You will also need to update your context_processors with:

‘django.template.context_processors.request’,

NB: don’t forget to delete any ‘endless_pagination’ from INSTALLED_APPS in the settings.py file.

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 %}

Change Log

3.0.1:

  • Compatible with Django 3.2, Python 3.9

2.0.14:

  • django-endless-pagination -> django-el-pagination

Changed in 2.0.0:

  • In this version, we changed the name of the migrations directories as follows. If you are using Django 1.7+ and are upgrading to newscenter 2.0.0, you can make sure to remove newscenter from MIGRATION_MODULES in settings.py. If you are using Django 1.6, update the MIGRATION_MODULES as documented above.

  • https://github.com/ImaginaryLandscape/django-newscenter/issues/4

Renamed Directories: migrations -> south_migrations migrations_django -> migrations

New in 1.5.8: - Added support for Django 1.7

New in 1.4.1: - Added title field to Contact model

New in 1.4: - Switched image plugin from popeye to bxslider

Download files

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

Source Distribution

newscenter-4.0.2.tar.gz (86.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newscenter-4.0.2-py3-none-any.whl (100.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: newscenter-4.0.2.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

File hashes

Hashes for newscenter-4.0.2.tar.gz
Algorithm Hash digest
SHA256 2a514ad700c3866a8fcc08c685c056d4dd3e0839e2a780d23d836b19fa18b04f
MD5 00e14ff3ac30601783437096ea3c0c39
BLAKE2b-256 87772335704e444b7ac93fab084218e777fe97deb1eea34e3de98491416c52d7

See more details on using hashes here.

File details

Details for the file newscenter-4.0.2-py3-none-any.whl.

File metadata

  • Download URL: newscenter-4.0.2-py3-none-any.whl
  • Upload date:
  • Size: 100.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-110-generic

File hashes

Hashes for newscenter-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb1b98598cb6b4c86d064ec3efd74921022a7d5e4864e96e277453e88dad63a
MD5 90b278477233fa898d3058d42c7a2038
BLAKE2b-256 2e590188ff054f6c383e0ae1e35ff82cc09df75c7c78c1ec963765c344c4e80e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.0.2

Supported by

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