[Answer]-Django:Bind comments to any object

1👍

https://docs.djangoproject.com/en/dev/ref/contrib/comments/

the comments framework uses Content Types and generic relations to attach a comment to any record of any model.

https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#module-django.contrib.contenttypes

https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1

ALSO

you can extend django comments if you need to do something custom. you shouldn’t need to roll your own. What specifically are you trying to achieve?

Leave a comment