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 %}
Metadata
Release files for simple-article 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple-article-0.2.1.tar.gz | 6.1 kB | Without provenance | Details for simple-article-0.2.1.tar.gz |
Release files / simple-article-0.2.1.tar.gz
| Download URL | simple-article-0.2.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48eb829311267139814eab4f20d673fe834aacc3490f809b01432e65e0699309
|
|
BLAKE2b-256 checksum How to use checksums |
564671c7e1e7debb9d1b7477a7507469fd206f69dee5aff61841ee533572bf07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for simple-article 0.2.1
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.