{"id":18457242,"url":"https://github.com/redsolution/django-easy-news","last_synced_at":"2026-03-15T11:34:29.374Z","repository":{"id":1026410,"uuid":"854473","full_name":"redsolution/django-easy-news","owner":"redsolution","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-02T08:01:12.000Z","size":163,"stargazers_count":5,"open_issues_count":3,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-08T05:33:41.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redsolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2010-08-22T08:44:47.000Z","updated_at":"2023-10-19T07:21:55.000Z","dependencies_parsed_at":"2022-07-17T11:46:22.135Z","dependency_job_id":"7b7659ac-a0ea-4267-bf7f-fc8539b9206f","html_url":"https://github.com/redsolution/django-easy-news","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/redsolution/django-easy-news","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-easy-news","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-easy-news/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-easy-news/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-easy-news/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsolution","download_url":"https://codeload.github.com/redsolution/django-easy-news/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsolution%2Fdjango-easy-news/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30540981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T08:13:49.480Z","updated_at":"2026-03-15T11:34:29.354Z","avatar_url":"https://github.com/redsolution.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-easy-news\n\nApplication provides news functionality for your site.\n\n## Installation and basic usage\n\n\n1. Install package\n\n    `` pip install git+git://github.com/oldroute/django-easy-news.git``\n\n\n2. Configure your settings file:\n\n\t``INSTALLED_APPS += ['easy_news']``\n\n\n3. Add urlpattern to main urls.py:\n\n    ```python\n    urlpatterns = [\n\t...\n        url(r'^news/', include('easy_news.urls')),\n    ...\n    ```\n7. Apply migrations and run local server\n\n    ```python\n    python manage.py migrate easy_news\n    python manage.py runserver\n    ```\n\n### Views\n\nEasy news has several url handlers (I mean named patterns):\n\n- ``news_detail`` - show news itself\n- ``news_list`` - shows list of publicated news if ``settings.ENABLE_NEWS_LIST`` is True\n- ``news_archive_index`` - shows content of ``django.views.generic.date_based.archive_index_view`` if ``news_settings.ENABLE_NEWS_ARCHIVE_INDEX`` is True\n- ``news_archive_year``, ``news_archive_month``, ``news_archive_day`` - shows news archive by given date, if ``settings.ENABLE_NEWS_DATE_ARCHIVE`` is True\n- ``news_tag_detail`` - if you use ``django-tagging`` and ``settings.NEWS_TAGGING`` is True, easy_news provide list of tagged news\n\n### Templatetags\n\n- ``{% show_news \u003cnum\u003e %}`` - render list of ``num`` latest news.(default: 5) with template ``easy_news/parts/block.html``\n\n- ``{% get_news \u003cnum\u003e %}`` - return queryset of ``num`` latest news. (default: all)\n\n- ``{% calendar \u003cyear\u003e \u003cmonth\u003e %}`` - render calendar with template ``easy_news/parts/calendar.html``. If there's some news at date, shows hyperlink to news (by default, use current date)\n\nCustomize:\n----------\n\nFull settings list:\n\n- ``ENABLE_NEWS_LIST`` (boolean) - render latest news list. Default - True\n- ``ENABLE_NEWS_ARCHIVE_INDEX`` (boolean) - render django generic date **archive index** of news objects. Default - True\n- ``ENABLE_NEWS_DATE_ARCHIVE`` (boolean) - render django generic date **full archive** of news objects. Default - True\n- ``NEWS_TAGGING`` (boolean) - use news tagging. Default - if `django-tagging`_ is installed, True, otherwise False\n- ``NEWS_ADMIN_EXTRA_CLASS`` - Admin page customizing: dictionary of extra css classes for fields. Default - ``{'all': ''}``\n- ``NEWS_ADMIN_EXTRA_CSS`` - Admin page customizing: dictionary of extra css files for mailing list admin page. Default - `` {'all': ['']})``\n\n\tExample:\n\t```python\n\tNEWS_ADMIN_EXTRA_CLASS = {'all': 'my-class'}\n    NEWS_ADMIN_EXTRA_CSS = {'all': ['css/admin/common.css']}``\n\t```\n\nHISTORY:\n--------\n0.2.3: Added haystack compatibility\n\nClassifiers:\n\n`Frontpage handlers`_\n\n.. _`django generic views system`: http://docs.djangoproject.com/en/1.2/ref/generic-views/\n.. _`django.views.generic.date_based.archive_index`: http://docs.djangoproject.com/en/1.2/ref/generic-views/#django-views-generic-date-based-archive-index\n.. _`django-tagging`: http://pypi.python.org/pypi/django-tagging/\n.. _`Frontpage handlers`: http://www.redsolutioncms.org/classifiers/frontpage\n\n0.3.0: Added support for django 1.7\n\n- Delete support menu proxy\n\n1.11: Added support for django 1.11\n- Added templatetag \"get_news\"\n- Update template structure\n- News model: new fields - \"show\", \"creation_date\", \"author\"; new properties - \"main_content\", \"short_description\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolution%2Fdjango-easy-news","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsolution%2Fdjango-easy-news","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsolution%2Fdjango-easy-news/lists"}