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:

INSTALLED_APPS = (
    ...
    '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.1.0 (2017-12-28)

  • First release on PyPI.

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

Uploaded Source

Built Distribution

django_user_activities-0.2.0-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-user-activities-0.2.0.tar.gz
Algorithm Hash digest
SHA256 32fed5b742c32694d5849e377a748da35e7ce9f787a527efbf80051e1ea94b01
MD5 e3c36de4e567cc5226e40ea9dc77dc60
BLAKE2b-256 7c238cac3f02a2e77c8e2537e6cd580d3cf28177e9291f73b17163fdfe667863

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_user_activities-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 125c58b211249d1780299362caf9f8dc5bd6e71aa8a96de02e58c7091f64c454
MD5 a833299352bf6254fe900a28e82290a1
BLAKE2b-256 08fcb6bf4f9b8e96655fb9de0d80bfd9b78e29fbb0c6dafa848836d59b8576bc

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