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

Metadata

Release files for django-mp-articles 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mp-articles 3.0
File Size Uploaded Provenance Actions
django-mp-articles-3.0.tar.gz 6.8 kB Without provenance Details for django-mp-articles-3.0.tar.gz

Release files / django-mp-articles-3.0.tar.gz

Download URL django-mp-articles-3.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
68515a78f2c5c1722e5dde5cae163d2415f26d6b07a7a048314e10f0ef531313
BLAKE2b-256 checksum
How to use checksums
25bea09f647a68732e7f09066c7159726b454f5b513eb22cb384406a73142f9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-mp-articles 3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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