Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Provide deadly simple Article model for Django

Project description

https://travis-ci.org/zniper/simple-article.svg?branch=master https://coveralls.io/repos/zniper/simple-article/badge.svg?branch=master

simple-article is a Django application which provides a simple Article model. That model could be a good start for simple blog or news, without the needs for installation much of other 3rd party packages.

Installation

You can install simple-article from PyPI:

pip install simple-article

Or from GitHub:

pip install https://github.com/zniper/simple-article/zipball/master

Configuration

Inside settings module, put article and related applications into INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'tinymce',
    'taggit',
    'article',
)

Include article URLs inside application urls.py file:

urlpatterns = patterns(
   ...
    url(r'^blog/', include('article.urls')),
    ...
)

Then, update the database.

With Django 1.9 or newer:

python manage.py migrate article

With Django 1.8.x or older:

python manage.py syncdb

or using South:

python manage.py migrate article

Usage

Inside templates, there is an assignment tag named recent_articles which returns limited number of newest articles:

{% load article_tags %}

Short call, with maximum 10 newest articles returned:

{% recent_articles as other_articles %}

Customized call, with exclusion of given article:

{% recent_articles limit=5 exclude=article.pk as other_articles %}

Project details


Release history Release notifications

This version
History Node

0.2.1

History Node

0.2.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
simple-article-0.2.1.tar.gz (6.1 kB) Copy SHA256 hash SHA256 Source None Jan 21, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page