Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

CKAN でdebug=true にすると AttributeError が出る時の対処

More than 5 years have passed since last update.

確認バージョンは CKAN 2.4.2。

に答えがあった。

nodejs と npm をインストール

sudo yum install nodejs npm

CKAN のフォルダに移動し、less と nodewatch をインストール

npm install less@1.7.5 nodewatch

less を実行すると、main.debug.css が生成される

$ bin/less
Watching /var/local/ckan/default/pyenv/src/ckan/ckan/public/base/less
[2015-10-27 00:28:08] recompiled main.debug.css in 2027ms

所定のフォルダに debug.main.css が生成されるので、サービスを再起動すればOK

hal_sk
Georepublic Japan CEO http://georepublic.co.jp/, Code for Japan 代表理事 http://code4japan.org/, Detailed profile: http://jp.linkedin.com/in/halsk/ お仕事の依頼は info@georepublic.co.jp までお願いします。
http://www.georepublic.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away