2014年4月12日土曜日
Django CMS 3.0が正式リリースされたのだけれど
Django CMS 3.0が正式リリースされたのだけれど、なぜかページ編集画面が正常に動作しない。
編集関連の機能が一切効かないし、CMSのナビゲーションバーも反応なし。
環境依存の問題なのだろうか。
2014年4月5日土曜日
django-cms 3.0rc2をUbuntu 12.04にインストール
django-cmsをubuntu 12.04にインストールするメモです。
インストール中に質問される「django CMS version」で「rc」を選択しないとインストールに失敗します。
参考;
https://www.digitalocean.com/community/articles/how-to-set-up-and-install-django-cms-on-a-debian-7-or-ubuntu-13-vps
https://github.com/divio/django-cms-tutorial/blob/master/Step%201%20-%20Initial%20Setup.md
インストール中に質問される「django CMS version」で「rc」を選択しないとインストールに失敗します。
$sudo apt-get update $sudo apt-get install python-virtualenv libpq-dev python-dev libjpeg-dev libpng12-dev $virtualenv pyenv $source ./pyenv/bin/activate $pip install djangocms-installer $mkdir project_name $cd project_name $djangocms -p . project_name Database configuration (in URL format) [default sqlite://locahost/project.db]:[Enter] django CMS version (choices: 2.4, stable, rc, develop) [default stable]: rc Django version (choices: 1.4, 1.5, 1.6, stable) [default 1.5]: 1.6 Activate Django I18N / L10N setting (choices: yes, no) [default yes]:[Enter] Install and configure reversion support (choices: yes, no) [default yes]:[Enter] Languages to enable. Option can be provided multiple times, or as a comma separated list: en,ja Optional default time zone [default America/Chicago]: UTC Activate Django timezone support (choices: yes, no) [default yes]:[Enter] Activate CMS permission management (choices: yes, no) [default yes]:[Enter] Use Twitter Bootstrap Theme (choices: yes, no) [default no]:[Enter] Load a starting page with examples after installation (choices: yes, no) [default no]:[Enter]
参考;
https://www.digitalocean.com/community/articles/how-to-set-up-and-install-django-cms-on-a-debian-7-or-ubuntu-13-vps
https://github.com/divio/django-cms-tutorial/blob/master/Step%201%20-%20Initial%20Setup.md
2014年1月12日日曜日
Pythonで作成したスクリプトをdaemon化する Ubuntu 12.04 - 14.04
Ubuntu 12.04以降(2015年2月時点で14.04までOK)でPythonで作成したスクリプトをdaemon化する場合、upstartに任せてしまうのが便利です。
サンプルはここに置きました。
参考:http://heartbeats.jp/hbblog/2013/02/upstart-daemon.html
なお、upstartを利用しているディストリビューションでも、設定ファイルをインストールするフォルダが異なることがあるようなので、Ubuntu以外を利用している人は設定ファイルの保存先を変更してください。
upstart
Ubuntuではサービスの起動にupstartを利用できるようになっています。
upstartでサービスの起動を行う場合、以下のようなファイルを/etc/init以下に保存し、「/sbin/initctl reload-configuration」で設定を再読み込みします。
#/etc/init/python_daemon_example.conf description "python daemon example" author "ccat" start on runlevel [2345] stop on runlevel [016] chdir /usr/local/python_daemon_example exec python daemon.py respawn
cp ./python_daemon_example.conf /etc/init/python_daemon_example.conf /sbin/initctl reload-configuration
登録:
投稿 (Atom)