Application provides news functionality for your site.
Installation:
In settings.py:
Add easy_news to your INSTALLED_APPS.
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
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:
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file redsolutioncms.django-easy-news-0.2.4.tar.gz.
File metadata
- Download URL: redsolutioncms.django-easy-news-0.2.4.tar.gz
- Upload date:
- Size: 74.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd5e185ebeafa2be196e54c04ffa9103505b2ce9fff664cdaa2b9665180bf34e
|
|
| MD5 |
774ea1d72cb2569c219e72e53ca6b296
|
|
| BLAKE2b-256 |
da59e3079f7bc804c586a8b12b6c125338c28083835657ad83ca67a8cf778114
|