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
File details
Details for the file ckanext-comments-0.0.2a1.tar.gz
.
File metadata
- Download URL: ckanext-comments-0.0.2a1.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28471a7e9b699108d73396105fa623a4e521fe29ba8ccaecdc0036a0e980733f |
|
MD5 | f1b1500ab9211a7cda44838392970958 |
|
BLAKE2b-256 | 83a17e3ae454788252915d696cda21e78a63dad0c1baa48c603945a18592f68c |
Provenance
File details
Details for the file ckanext_comments-0.0.2a1-py3-none-any.whl
.
File metadata
- Download URL: ckanext_comments-0.0.2a1-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875e8dafb410ed33f0eed3d22c15041423dd6045147fac5a6ba592610eda943a |
|
MD5 | edb7d0c2b09588c8fd37530d29ec722f |
|
BLAKE2b-256 | 73adcbfc3e79fb58df96d7443ec3c2f62d53f19c490188f9ee065e36f8f24be9 |