-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Aleksandar Jovanov edited this page May 25, 2017
·
5 revisions
To install ckanext-requestdata:
- Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
- Install the ckanext-requestdata Python package into your virtual environment:
pip install ckanext-requestdata
- Add
requestdata
to theckan.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
- Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
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