To install ckanext-questionnaire:
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/keitaroinc/ckanext-questionnaire.git cd ckanext-questionnaire pip install -e . pip install -r requirements.txt
Add questionnaire to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).
Create the database tables running:
ckan -c /path/to/ini/file questionnaire init-db
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
For uninstalling the extension, drop the tables in the database using running:
ckan -c /path/to/ini/file questionnaire delete-db
Config settings
When logging in the user is redirected to the Questions page available on the User Dashboard page. You need to add the following setting in your ckan.ini file:
route_after_login = “user.me”