Django KB
=============================
.. image:: https://pypip.in/version/django-kb/badge.svg
:target: https://pypi.python.org/pypi/django-kb/
:alt: Latest Version
.. image:: https://pypip.in/py_versions/django-kb/badge.svg
:target: https://pypi.python.org/pypi/django-kb/
:alt: Supported Python versions
.. image:: https://pypip.in/format/django-kb/badge.svg
:target: https://pypi.python.org/pypi/django-kb/
:alt: Download format
.. image:: https://travis-ci.org/eliostvs/django-kb.png?branch=master
:target: https://travis-ci.org/eliostvs/django-kb
.. image:: https://coveralls.io/repos/eliostvs/django-kb/badge.png?branch=master
:target: https://coveralls.io/r/eliostvs/django-kb?branch=master
Simple knowledge base made with django
Installation
-------------
#. Install or add ``django-kb`` to your Python path, i.e.:
.. code:: sh
$ pip install django-kb
#. Add ``kb`` to your ``INSTALLED_APPS`` setting.
#. Add kb url include to your project's ``urls.py`` file with namespaece ``kb``::
(r'^', include('kb.urls', namespace='kb')),
#. Add ``kb.middleware.KnowledgeMiddleware`` to your ``MIDDLEWARE_CLASSES`` setting, i.e.::
MIDDLEWARE_CLASSES = (
...
"kb.middleware.KnowledgeMiddleware",
)
Usage
-----
Template Tags
~~~~~~~~~~~~~
Loading the tags, i.e.::
{% load kbtags %}
{% top_new_articles %}
++++++++++++++++++++++
Return the new published articles.
{% top_viewed_articles %}
+++++++++++++++++++++++++
Return the most viewed articles.
{% top_rated_articles %}
++++++++++++++++++++++++
Return the most rated articles.
All this tags accept two optional parameters, ``num`` and ``category``.
``num`` is the number of the articles that will return, by default to 5.
``category`` can be a ``model`` or ``slug`` that will be used to filter the articles.
{% feedback %}
++++++++++++++
This is an inclusion tag which renders links to upvote or downvote the article.
To support AJAX you need to load jQuery and the ``feedback.js`` in your template, i.e.::
{% load staticfiles %}
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="{% static "kb/js/feedback.js" %}"></script>
Example
-------
Example of the app django-kb running on Openshift `here <https://github.com/eliostvs/django-kb-example>`_.
.. :changelog:
History
-------
0.2.0 (2014-11-05)
++++++++++++++++++
* Add pagination in TagListView and CategoryDetailView.
* Improve admin options.
0.1.0 (2014-08-05)
++++++++++++++++++
* First release on PyPI.
Metadata
Release files for django-kb 0.2.0
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 |
|---|---|---|---|---|
| django-kb-0.2.0.tar.gz | 15.3 kB | Without provenance | Details for django-kb-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_kb-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_kb-0.2.0-py2.py3-none-any.whl |
Total release size: 40.7 kB
Release files / django-kb-0.2.0.tar.gz
| Download URL | django-kb-0.2.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2aa039c91fd9ca8b0996646b6770eb430966a7c7bb62a3b74c7bb47b9eeb753b
|
|
BLAKE2b-256 checksum How to use checksums |
997e168b417eae3d757505b15300e707a741ce44c533ea6ba4ef0751d1b225fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_kb-0.2.0-py2.py3-none-any.whl
| Download URL | django_kb-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
81b4339bb55ff4fa9f32425527e83a481cad44d76b5f4d2ca76493109a3bb473
|
|
BLAKE2b-256 checksum How to use checksums |
aa9b25879f596b80a0612568d652ab945881c91c9ce2ab0294cd476df4bbf607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-kb 0.2.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.