Skip to content

ogdch/ckanext-noregistration

Repository files navigation

ckanext-noregistration

Plugin to disable user registration on a CKAN instance (based on this answer on StackOverflow)

Installation

Use pip to install this plugin. This example installs it in /home/www-data

source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-noregistration.git#egg=ckanext-noregistration --src /home/www-data
cd /home/www-data/ckanext-noregistration
python setup.py develop

Make sure to add noregistration to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit