Skip to content

Installation

Aleksandar Jovanov edited this page May 25, 2017 · 5 revisions

Installation

To install ckanext-requestdata:

  1. Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
  1. Install the ckanext-requestdata Python package into your virtual environment:
pip install ckanext-requestdata
  1. Add requestdata to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).
ckan.plugins = stats text_view requestdata
  1. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload

Config Settings

These are the required configuration options used by the extension:

Set flag to True only for HDX portal

hdx_portal = False

These are required options for sending emails

smtp.server=YOUR_SMTP_SERVER
smtp.user=YOUR_SMTP_USERNAME
smtp.password=YOUR_SMTP_PASSWORD
smtp.mail_from =YOUR_SMTP_MAIL

You can add these additional options in the config for footer links in the email when a new data request is sent:

ckanext.requestdata.newsletter_url=URL_TO_NEWSLETTER_OR_PAGE
ckanext.requestdata.twitter_url=URL_TO_TWITTER_ACCOUNT
ckanext.requestdata.contact_email=CONTACT_EMAIL