settings.txt 900 B

12345678910111213141516171819202122232425262728293031323334
  1. .. _ref-contrib-comments-settings:
  2. ================
  3. Comment settings
  4. ================
  5. These settings configure the behavior of the comments framework:
  6. .. setting:: COMMENTS_HIDE_REMOVED
  7. COMMENTS_HIDE_REMOVED
  8. ---------------------
  9. If ``True`` (default), removed comments will be excluded from comment
  10. lists/counts (as taken from template tags). Otherwise, the template author is
  11. responsible for some sort of a "this comment has been removed by the site staff"
  12. message.
  13. .. setting:: COMMENT_MAX_LENGTH
  14. COMMENT_MAX_LENGTH
  15. ------------------
  16. The maximum length of the comment field, in characters. Comments longer than
  17. this will be rejected. Defaults to 3000.
  18. .. setting:: COMENTS_APP
  19. COMENTS_APP
  20. -----------
  21. The app (i.e. entry in ``INSTALLED_APPS``) responsible for all "business logic."
  22. You can change this to provide custom comment models and forms, though this is
  23. currently undocumented.