I am developing a custom commenting solution for my webapp.Can anyone tell me what’s the logic behind binding comments to any model’s object?I want to do something like {% customcomment%}.Django comments framework already does this.
I am developing a custom commenting solution for my webapp.Can anyone tell me what’s
Share
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?