Skip to main content

No project description provided

Project description

Tests

ckanext-comments

Add comment-trees to CKAN pages

Requirements

  • python >= 3.7
  • CKAN >= 2.9

Installation

To install ckanext-comments:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate

  2. 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

  3. Add comments to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Apply database migrations

    ckan db upgrade -p comments

  5. 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

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-comments-0.0.4.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

ckanext_comments-0.0.4-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-comments-0.0.4.tar.gz.

File metadata

  • Download URL: ckanext-comments-0.0.4.tar.gz
  • Upload date:
  • Size: 30.3 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

Hashes for ckanext-comments-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ca9617930171b244c461cdb5a5d30f4a9bb8517cbaa735662bec2b29c6d68bdf
MD5 6282f53d6828c84e40b94e985e3ba8c9
BLAKE2b-256 2dc3ffaa5e32cd01a43e48096fd13de6dce2c35f3533724d8600ceee2e0f7869

See more details on using hashes here.

Provenance

File details

Details for the file ckanext_comments-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ckanext_comments-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 37.2 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

Hashes for ckanext_comments-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1edd20975a264ad42914a6929ce08399f841525e776c1756f472e501e42acbf1
MD5 09ea96932d16f8c50a280253e2a38a7a
BLAKE2b-256 94898a4f256602b74ae91961270ddc22ee18a14e581abb0944df787ec72c1035

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page