Skip to main content

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

Project description

https://badge.fury.io/py/django-user-activities.svg https://travis-ci.org/chopdgd/django-user-activities.svg?branch=develop https://codecov.io/gh/chopdgd/django-user-activities/branch/develop/graph/badge.svg Updates 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):

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

Add Django User Activities’s URL patterns:

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:

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:

History

0.2.0 (2017-12-28)

  • First release on PyPI.

  • Initial models and REST API.

0.3.0 (2017-01-05)

  • Improved REST API filters.

0.3.1 (2017-01-09)

  • Fixed issues with migrations.

0.3.2 (2017-01-12)

  • Fixed route names for SimpleRouter.

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.3.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

django_user_activities-0.3.2-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-user-activities-0.3.2.tar.gz
Algorithm Hash digest
SHA256 45575343d2ab8e5963ad25219459389d5fd3403bc2e76fcf6d709119fbd4abe1
MD5 296acc1a0466b898a621b4eb82cc381a
BLAKE2b-256 d76b2a7cbcce6ac3ca74f5f5c05b8be9eb17b0c4542afbc0094f673bca096c86

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_user_activities-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c817fafe044a31e13cabc9f8a2cad08698b0f20d75292d8aa87b3e6c9099f783
MD5 9bada41cd8ef3716985375861be9b3a2
BLAKE2b-256 d675df070607040251c1134fa5da96cf1e0de280f4de7f1db126b7deab94f75b

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