In this part we will improve the Bookstore application: what I am going to show is how easy it is to add support for enabling comments for a book without writing from scratch another comment system (as you may already now, avoid rewriting things is the core philosophy of Pinax and Django).
Basically, you could add this feature by using one of these two approaches (there may be other ones, but these are the most common):
- Django comments framework
- the django-threadedcomments system, that - as suggested by its name - it offers support for comments in a threaded fashion
You will implement a commenting system in the application you are developing by using the django-threadedcomments system.
Setup
You need to make sure that, in your settings file, you have the django-threadedcomments system enabled:
PROJECT_ROOT/settings.py:
INSTALLED_APPS = ( ... 'threadedcomments', 'threadedcomments_extras', ... 'bookstore', )
if you didn’t customize things, you should have this two applications already enabled (not commented).