Skip to main content

Django app for dealing with User activities (likes, tags, comments, etc.)

Project description

=============================
Django User Activities
=============================

.. image:: https://badge.fury.io/py/django-user-activities.svg
:target: https://badge.fury.io/py/django-user-activities

.. image:: https://travis-ci.org/chopdgd/django-user-activities.svg?branch=develop
:target: https://travis-ci.org/chopdgd/django-user-activities

.. image:: https://codecov.io/gh/chopdgd/django-user-activities/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/chopdgd/django-user-activities

.. image:: https://pyup.io/repos/github/chopdgd/django-user-activities/shield.svg
:target: https://pyup.io/repos/github/chopdgd/django-user-activities/
:alt: Updates

.. image:: https://pyup.io/repos/github/chopdgd/django-user-activities/python-3-shield.svg
:target: https://pyup.io/repos/github/chopdgd/django-user-activities/
:alt: Python 3

Django app for dealing with User activities (likes, tags, comments, etc.)

Documentation
-------------

The full documentation is at https://django-user-activities.readthedocs.io.

Quickstart
----------

Install Django User Activities::

pip install django-user-activities

Add it to your `INSTALLED_APPS` (along with DRF and django-filters):

.. code-block:: python

INSTALLED_APPS = (
...
'rest_framework',
'django_filters',
...
'user_activities',
...
)

Add Django User Activities's URL patterns:

.. code-block:: python

from user_activities import urls as user_activities_urls


urlpatterns = [
...
url(r'^', include(user_activities_urls, namespace='user_activities')),
...
]

Using Activity, Comment, or Review in your models:

.. code-block:: python

from django.contrib.contenttypes.fields import GenericRelation
from django.db import models


class ExampleModel(models.Model):
...
comments = GenericRelation('user_activities.Comment')
user_activities = GenericRelation('user_activities.Activity')

Features
--------

* TODO

Running Tests
-------------

Does the code actually work?

::

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits
-------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.2.0 (2017-12-28)
++++++++++++++++++

* First release on PyPI.
* Initial models and REST API.

0.3.0 (2017-01-05)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-user-activities/compare/v0.2.0...v0.3.0>`_

* Improved REST API filters.

0.3.1 (2017-01-09)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-user-activities/compare/v0.3.0...v0.3.1>`_

* Fixed issues with migrations.

0.3.2 (2017-01-12)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-user-activities/compare/v0.3.1...v0.3.2>`_

* Fixed route names for SimpleRouter.

0.4.0 (2017-02-06)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-user-activities/compare/v0.3.2...v0.4.0>`_

* Optimized API
* Added additional filters to API
* Made updates to dependencies library

0.4.1 (2017-02-09)
++++++++++++++++++

`Full Changelog <https://github.com/chopdgd/django-user-activities/compare/v0.3.2...v0.4.0>`_

* Fixed changelog
* Made updates to dependencies library

Project details


Download files

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

Source Distribution

django-user-activities-0.4.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

django_user_activities-0.4.1-py2.py3-none-any.whl (12.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-user-activities-0.4.1.tar.gz.

File metadata

File hashes

Hashes for django-user-activities-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6a57973270bf4fdbda65a690d68f0657887487702e183c2584fa66d4fd9121f7
MD5 07f0bb12028d02b551af5560615b16b1
BLAKE2b-256 18c96077c5b3d7609bf6b2270770373f33c79ac00135a782e2b458cced4e09bc

See more details on using hashes here.

Provenance

File details

Details for the file django_user_activities-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_user_activities-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c62b9bf2568f9eebf8de0a149e895cd61892e7d018f660336f2e9c170f49b50
MD5 6877cefe4dc0059b2dae1034d5a07b3d
BLAKE2b-256 3b6b9bd7f80dfca514234f5cafcfcf3fade55b0c2adf02c03209c01aac279f02

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page