Skip to main content

A reusable Django app for generic comments with DRF API support

Project description

Django Tippanee

A reusable Django app for a generic comment system with DRF API support, using GenericForeignKey to attach comments to any model.

Installation

pip install django-tippanee  # after uploading to pypi

pip install git+https://github.com/urwithajit9/django-tippanee.git

Usage

  • Add to INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'django_tippanee',
]
  • Include URLs:
urlpatterns = [
    path('api/comments/', include('django_tippanee.urls')),
]
  • Run migrations
python manage.py migrate

API Endpoints

  • GET /api/comments/: List comments (filter by content_type, object_id).

  • POST /api/comments/: Create a comment.

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_tippanee-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tippanee-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file django_tippanee-0.1.0.tar.gz.

File metadata

  • Download URL: django_tippanee-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for django_tippanee-0.1.0.tar.gz
Algorithm Hash digest
SHA256 634a2565eeb2f9fda677a7a8ddb436088fdeb6aa87089badbf3ab1baf3d0f893
MD5 7e15d5154434c837a510c69f9c450005
BLAKE2b-256 ffbdd45d10c98bd89ebd779364aa08a0d6125e80248c29d1b85b68807a328074

See more details on using hashes here.

File details

Details for the file django_tippanee-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tippanee-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a946ad09bc95592045b35cbe217afcc22792bc3d4e9f60f1d9e2ae3db164c89b
MD5 26bf27ce56d407127814b3aae7498629
BLAKE2b-256 b8dbbb920fc99fb12bfff29448d8b55625c2c8a6babda0db6f05a69dd4acc22c

See more details on using hashes here.

Supported by

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