Google Map API helper app for Djangoを確認したいのですが、まだまだ動作しません。
Google Map API helper app for Django
http://code.djangoproject.com/wiki/django-gmap
ソースを下記よりダウンロードして
http://django-googlemap.googlecode.com/svn/trunk/
Installの項目を作業を行い
- add googlemap application in a django project
- edit googlemap/settings.py: set SECRET_KEY (get a key at http://code.google.com/apis/maps/signup.html)
- import googlemap/settings.py in the main settings.py: from googlemap.settings import *
- add googlemap urls: (r'^mysite/gmap/', include('mysite.googlemap.urls')),
carpoolの階層で python manage.py runserver を行うと
Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file settings.py does indeed exist, it's causing an ImportError somehow.)と言われます。
settings.pyの内容を確認するために python settings.py を行うと
Traceback (most recent call last): File "settings.py", line 91, in <module> from geo.googlemap.settings import * File "/<path-to-django>/carpool/geo/googlemap/settings.py", line 6, in <module> from settings_local import * ImportError: No module named settings_localと言われます。
settings_local.py って何ですか?
そもそも、Google Map API helper app for Djangoは1.24では動かないのでしょうか?
0 件のコメント:
コメントを投稿