Skip to main content
# MP-Articles

Django articles app.

### Installation

Install with pip:

```sh
$ pip install django-mp-articles
```

Add articles to urls.py:

```
urlpatterns += i18n_patterns(
url(r'^articles/', include('articles.urls', namespace='articles')),
)
```

Add articles to settings.py:
```
INSTALLED_APPS = [
'articles',
]

# Default: ('news', _('News')),
ARTICLE_TYPE_CHOICES = (
('example', _('Example')),
('example2', _('Example 2')),
)

# Default: None
DEFAULT_ARTICLE_TYPE = 'example'
```

Run migrations:
```
$ python manage.py migrate
```

### Template tags

To get latest articles in template you should load 'articles' tags and add 'get_latest_articles' template tag into your template.
Examples:

```
{% load articles %}

{% get_latest_articles article_type='example' %}

{% get_latest_articles article_type='example' count=3 %}

{% get_latest_articles article_type='example' as latest_articles %}
```

### Requirements

App require this packages:

* django-modeltranslation
* django-pure-pagination
* django-ckeditor

Download files

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

Source Distribution

django-mp-articles-3.0.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file django-mp-articles-3.0.tar.gz.

File metadata

File hashes

Hashes for django-mp-articles-3.0.tar.gz
Algorithm Hash digest
SHA256 68515a78f2c5c1722e5dde5cae163d2415f26d6b07a7a048314e10f0ef531313
MD5 5167e84b7673fff703ea8cf1c5eb96d6
BLAKE2b-256 25bea09f647a68732e7f09066c7159726b454f5b513eb22cb384406a73142f9b

See more details on using hashes here.

Release history Release notifications | RSS feed

10.0.0

1 file

9.2.5

1 file

9.2.4

1 file

9.2.3

1 file

9.2.2

1 file

9.2.1

1 file

9.2

1 file

9.1

1 file

9.0

1 file

8.3

1 file

8.2

1 file

8.1

1 file

8.0

1 file

7.2

1 file

7.1

1 file

7.0

1 file

6.2

1 file

6.1

1 file

6.0

1 file

5.0

1 file

4.0

1 file

This release

3.0 This release

1 file

2.2

1 file

2.1

1 file

2.0

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page