I've done a CKAN development install and am running with debug = true in my development.ini file. On visiting localhost:5000 I get an error with a traceback whose end point is the error:
AttributeError: 'module' object has no attribute 'css/main.debug.css'
Caused by the call in lib/helpers.py:
r = getattr(fanstatic_resources, resource)
Any idea what I'm doing wrong and what I can do to fix this error.
You need to run the less
script from the bin
directory in the CKAN source code to build the main.debug.css
file. There is some documentation of this but it's not yet integrated with the rest of the CKAN docs (i.e. there's no link to it anywhere, we have a ticket to fix this).
This works on Ubuntu 12.04, you might need to have your virtualenv active when you do this:
sudo apt-get install nodejs npm
npm install less nodewatch
./bin/less # Assuming you're in your ckan dir e.g. `~/pyenv/src/ckan`
Now restart the paster serve development.ini
command and it should work.
Generally speaking whenever running CKAN 2.0 for development you should:
debug = True
in your ini file./bin/less
running in a terminal all the timeIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With