No project description provided
Project description
ckanext-comments
Add comment-trees to CKAN pages
Requirements
- python >= 3.7
- CKAN >= 2.9
Installation
To install ckanext-comments:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone https://github.com/DataShades/ckanext-comments.git cd ckanext-comments pip install -e . pip install -r requirements.txt
-
Add
comments
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Apply database migrations
ckan db upgrade -p comments
-
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
# Require comment approval in order to make it visible
# (optional, default: true).
ckanext.comments.require_approval = false
Developer installation
To install ckanext-comments for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-comments.git
cd ckanext-comments
python setup.py develop
pip install -r dev-requirements.txt
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ckanext_comments-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4575e28007317fb417e9990b7c97500b5551bb77885ba4b686ed912c3d1493 |
|
MD5 | 6025b82db4fe8f6b0b23465f6b709e41 |
|
BLAKE2b-256 | c47b0403623e4c3ef855b75e359052fa668d49c1b23ccb9538e97d9dde25793a |