Skip to content
Python CSS HTML JavaScript Shell Dockerfile
Branch: iod-v2.6
Clone or download
Pull request Compare This branch is 530 commits ahead, 3245 commits behind ckan:master.
nimaadib Merge pull request #92 from smallmedia/iod-a19
Iod a19 - translation file and path
Latest commit 75be881 Sep 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add info explaining checkboxes Feb 23, 2016
.tx Update Transifex config for 2.6 Oct 18, 2016
ckan translate in javascript Jun 18, 2019
ckanapi @ 4b34104 updating submodules Oct 27, 2017
ckanext-contact @ aedd043
ckanext-fluent issue 80 - convert ckanext-fluent submodule to directory Apr 17, 2019
ckanext-googleanalytics @ 7c805cd googleanalytics submodule Dec 1, 2017
ckanext-iod_theme Fix translation Sep 13, 2019
ckanext-pages @ 077da72 updating submodules Oct 27, 2017
ckanext-pdfview @ 99c48f3
ckanext-scheming @ b9f9db1
ckanext-showcase @ a72533c showcase extension Mar 5, 2019
ckanext pep8 Oct 26, 2017
ckantoolkit @ fe0f170 installing all the bits for custom metadata Jul 25, 2017
contrib/docker End of Line - to LF (Unix) May 26, 2016
.gitattributes Update translations from Transifex before 2.6 Oct 26, 2016
.gitignore ignore vagrant folder Jan 4, 2018
.pipignore [ckan#473] merge origin/master Jun 11, 2013
CHANGELOG.rst add changes to changelog Oct 26, 2017
CONDUCT.rst Change the email address for complaints Jan 26, 2016
CONTRIBUTING.rst Reorganize the contributing docs Nov 15, 2013
LICENSE.txt Removes all of the code for processing genshi templates Jan 13, 2016 include '.sql' migrations (Fixes ckan#3045) May 23, 2016
README-CKAN.rst Update and rename README.rst to README-CKAN.rst Jul 20, 2017 showcase extension Mar 5, 2019
Vagrantfile Working vagrant config. Apr 27, 2017
circle.yml -- deleted depreced pip Jun 11, 2016
dev-requirements.txt Coveralls Unpinned - Added Comment Jun 14, 2016
pip-requirements-docs.txt [ckan#1197] Add requirements file to fix the docs build on readthedocs Aug 19, 2013 Add and test PEP 263 source file encoding specifications. May 30, 2016 [ckan#3148] Remove WSGI Party Jul 1, 2016
requirements.txt [ckan#3148] Remove WSGI Party Jul 1, 2016
setup.cfg [ckan#2774] Add isPlural as a translation keyword Aug 7, 2012 Merge branch 'bugfix/permissions_call_check_access' of https://github… Jun 3, 2016
test-core.ini Explicitly create a ckan core for tests Mar 18, 2016
test.ini Change all example uses of domain names to be RFC compliant special-u… Jun 28, 2016
who.ini [packaging] moving who.ini Mar 10, 2011

Small Media CKAN Notes

  1. vagrant up should get you a working local install
  2. vagrant ssh to login to the vagrant machine
  3. From the /vagrant directory (which is the default), run paster serve /etc/ckan/default/ckan.ini
  4. Visit the app at

Working with paster on local

  • To create a sysadmin account, run: paster sysadmin add myusername -c /etc/ckan/default/ckan.ini
  • If you build a new extension remember to run the installation commands before adding it to plugins list in the config file:
    1. . /home/vagrant/bin/activate (local) or . /webapps/iod-ckan/bin/activate (staging/live)
    2. cd ckanext-nameofextension/
    3. python develop
  • To edit your local config file: sudo vi /etc/ckan/default/ckan.ini. On staging/live machine exit from CKAN user first

Deploy to iod-ckan-live

  1. Go to the deploy folder: cd deploy
  2. Run the deploy script: ansible-playbook live.yml

Working with paster on iod-ckan-live

  • Login to iod-ckan-live: ssh
  • Switch to the CKAN user: sudo su - iod-ckan
  • paster <command> /etc/ckan/default/ckan.ini
  • If server not running: sudo service supervisor restart (exit from CKAN user first)

Update View Tracking

If you already deployed the ckan, set ckan.tracking_enabled to true in the [app:main] section of your CKAN configuration file (e.g /etc/ckan/default/ckan.ini):

ckan.tracking_enabled = true

Otherwise the ckan config file will be created based on ckan.ini.j2 witch the tracking_enabled is true by default.

To update tracking summary: paster tracking update -c /etc/ckan/default/ckan.ini

To rebuild the serch index: paster search-index rebuild -c /etc/ckan/default/ckan.ini

Also it's possible to create a cron job to do the updating and rebuilding periodically. run crontab -e and add this line to current cron file:

@hourly /usr/lib/ckan/bin/paster --plugin=ckan tracking update -c /etc/ckan/default/ckan.ini && /usr/lib/ckan/bin/paster --plugin=ckan search-index rebuild -r -c /etc/ckan/default/ckan.ini

Be sure that the path of the paster is correct. The @hourly can be replaced with @daily, @weekly or @monthly.


To install showcase:

cd ckanext-showcase
python develop
pip install -r dev-requirements.txt

Showcase will create it's tables. CKAN timeout when Showcase is enabled for the first time. to solve the problem you need to disable all plugins. Edit the local config file: sudo vi /etc/ckan/default/ckan.ini and comment out the ckan.plugins line. then add this line instead: ckan.plugins = showcase and run the CKAN. After creating the tables, enable all plugins again.

You can’t perform that action at this time.