tetsunosukeのnotebook

tetsunosukeのメモです

JaikuEngineを動作させてみる(Windows-開発環境編)

QuickStartにあるように、local_settings.example.py → local_settings.py とする。

内容を確認しておく...

DEBUG = True
TEMPLATE_DEBUG = True

GAE_DOMAIN = 'localhost:8080'
DOMAIN = 'localhost:8080'
COOKIE_DOMAIN = 'localhost'
WILDCARD_USER_SUBDOMAINS_ENABLED = False
SUBDOMAINS_ENABLED = False
SSL_LOGIN_ENABLED = False

とりあえずこのままでよさげ。testserverとして動かす場合は8080のポートになるけど、runserverすると8000番になるので注意、、、かな?

で、"Ian Lewis's Blog - Jaikuを動かしてみた"にある対処を先にやっておく。

この状態で

>C:\Python25\python.exe manage.py testserver
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.datastore
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.datastore.history
WARNING:root:Could not initialize images API; you are likely missing the Python
"PIL" module. ImportError: No module named _imaging
INFO:root:Trying to load components in ['.svn', 'dummy_analytics', 'dummy_legal'
, 'dummy_sms_service', 'dummy_xmpp_service', 'models.py', 'models.pyc', 'tests.p
y', '__init__.py', '__init__.pyc']...
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.testdatastore
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.testdatastore.history
WARNING:root:Could not initialize images API; you are likely missing the Python
"PIL" module. ImportError: No module named _imaging
INFO:root:Server: appengine.google.com
INFO:root:Checking for updates to the SDK.
INFO:root:The SDK is up to date.
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.testdatastore
WARNING:root:Could not read datastore data from c:\docume~1\owner\locals~1\temp\
django_jaiku.testdatastore.history
WARNING:root:Could not initialize images API; you are likely missing the Python
"PIL" module. ImportError: No module named _imaging
INFO:root:Running application jaiku on port 8080: http://localhost:8080

で動作させて、http://localhost:8080
で動いたー!

...でもこのあとメールサーバの用意とかしないとまともに動作確認とかできないんだよねどうしよう