Configuration hints |
Installation:
pip install ‘git+https://github.com/qld-gov-au/ckanext-datarequests.git#egg=ckanext-datarequests’
Or development mode: pip install -e ‘git+…’
Add datarequests to ckan.plugins
Configuration:
ckan.datarequests.comments = [true|false] # Enable/disable comments (default: true)
ckan.datarequests.show_datarequests_badge = [true|false] # Show badge in menu (default: false)
ckan.datarequests.description_required = [True|False] # Require description field (default: False)
Database setup:
ckan -c datarequests init_db
ckan -c datarequests update_db
Restart Apache:
sudo service apache2 restart
Development environment:
pygmy up
ahoy build
Login: admin/password
Available ahoy commands: build, clean, cli, doctor, down, flush-redis, info, install-site, lint, logs, pull, reset, restart, start, stop, test-bdd, test-unit, up
Tests:
ahoy test-unit (set ALLOW_UNIT_FAIL=1 to allow failures)
ahoy test-bdd (set ALLOW_BDD_FAIL=1 to allow failures)
python setup.py nosetests
|