About
Visitor comments on posts with moderation (public form + admin approval)
Provides
Models
Comment
Services
CommentsService
Routes
/admin/comments/admin/comments/<int:comment_id>/approve/admin/comments/<int:comment_id>/delete/comments/<int:post_id>
Hooks filled
layout.authenticated_sidebarpost.comments
Signals
comment-createdcomment-submitting
Translations
es
Commands
-
$
splent feature:comments helloExample command, replace it with your own.
Run them in your workspace once the feature is installed in the selected product.
Configuration
| Setting | Default | What it does |
|---|---|---|
COMMENTS_AUTO_APPROVE |
false
|
Publish new comments immediately instead of holding them for moderation. Also admin-editable in the settings panel, which wins at request time. |
COMMENTS_MAX_PER_HOUR |
10
|
No description yet. |
These are the defaults. A product changes them in its own pyproject.toml, under [tool.splent.config], or in .env.deploy in production.
Dependencies
Requires
In product lines
-
cms_spl
Optional in this line
Needs
post
Extension points
Templates
comments/admin/list.htmlcomments/index.htmlcomments/thread.html
Services
CommentsService
Models
Comment
Routes
A refinement can add routes to its blueprint
Other features fill its hook slots. A refinement can override its templates and services or extend its models without forking it.
Compatibility
Python
>=3.13
SPLENT framework
>=1.30.0