Puput allows customize the comment system for your blog entries. Simply go to settings tab while editing blog properties
and add the required parameters depending on which system you want to use.
There is a PUPUT_COMMENTS_PROVIDER setting that should point to the specific provider class. It defaults to DisqusCommentsProvider.
Set Disqus api secret and Disqus shortname with your project values and comments will be displayed in each blog entry.
Disqus api secret is needed to retrieve the number of comments of each entry. If you don’t need such data
in your blog just fill Disqus shortname field.
To change how comments are displayed, subclass the provider class you’re using and change its template
method to return the path to your custom template.
Comments¶
Puput allows customize the comment system for your blog entries. Simply go to settings tab while editing blog properties and add the required parameters depending on which system you want to use.
There is a
PUPUT_COMMENTS_PROVIDERsetting that should point to the specific provider class. It defaults toDisqusCommentsProvider.Disqus¶
Set Disqus api secret and Disqus shortname with your project values and comments will be displayed in each blog entry. Disqus api secret is needed to retrieve the number of comments of each entry. If you don’t need such data in your blog just fill Disqus shortname field.
In your
settings.pyfile:Note
If you set Disqus api secret you need to install tapioca-disqus to access to the Disqus API
Django Comments¶
Use django comments if you want to store comments in your own database and be able to access them as django models.
In your
settings.pyfile:Note
To use django comments you need to install either:
and optionally for features like comment threads, email confirmations, notifications etc:
Customize comment template¶
To change how comments are displayed, subclass the provider class you’re using and change its
templatemethod to return the path to your custom template.Implement your own provider¶
To add your own comment provider you will need to subclass
CommentsProviderand implement its methods:return the path to the template used to render the comment section
return dictionary with data needed in your template
return number of comments for the entry page