Start testing CKAN

Sep 17, 2014

First of all you’ll need to config everything right in your production.ini or development.ini of your CKAN site.

Follow the guide here Installing CKAN from Source and build Python virtual environment for you site.

Then you can get your hands dirty.

1.Creating a sysadmin user

You should run these command in your ckan directory.

cd /usr/lib/ckan/default/src/ckan

Then you can use your development.ini or production.ini file to do your magic.

paster sysadmin add 'whoami' -c /etc/ckan/default/production.ini
or
paster sysadmin add 'whoami' -c /etc/ckan/default/development.ini

2.Creating test data

paster create-test-data -c /etc/ckan/default/production.ini
or
paster create-test-data -c /etc/ckan/default/development.ini

3.Config file

You can customize your CKAN site by changing default setting here. For example, to change the title of your site you would find the ckan.site_title line in your config file and edit it:

ckan.site_title=Yuqian's CKAN

And another example you can also choose your default language in the config file.

ckan.locale_default=zh_CN #For default interface in Chinese.

Do Not Remain Silent

Back To Top