djangoid : Revision 23 で2年ぐらいとまっているのか。

hdknr@LennyOne:~/django$ svn co http://svn.nicolast.be/djangoid/trunk/djangoid
A    djangoid/manage.py
A    djangoid/djangoidstore.py
A    djangoid/AUTHORS
A    djangoid/openidhandlers.py
A    djangoid/__init__.py
A    djangoid/settings.py
A    djangoid/fix_headers.sh
A    djangoid/README
A    djangoid/templates
A    djangoid/templates/users
A    djangoid/templates/users/accept_root.html
A    djangoid/templates/users/yadis.xrds
A    djangoid/templates/users/login.html
A    djangoid/templates/users/userpage.html
A    djangoid/templates/server
A    djangoid/templates/server/yadis.xrds
A    djangoid/templates/base.html
A    djangoid/microidutils.py
A    djangoid/users
A    djangoid/users/views.py
A    djangoid/users/__init__.py
A    djangoid/users/models.py
A    djangoid/server
A    djangoid/server/views.py
A    djangoid/server/__init__.py
A    djangoid/server/models.py
A    djangoid/bin
A    djangoid/bin/checkmicroids.py
A    djangoid/COPYING
A    djangoid/header.gpl
A    djangoid/urls.py
A    djangoid/runtests.py
A    djangoid/openid
A    djangoid/openid/oidutil.py
A    djangoid/openid/dh.py
A    djangoid/openid/association.py
A    djangoid/openid/__init__.py
A    djangoid/openid/cryptutil.py
A    djangoid/openid/server
A    djangoid/openid/server/__init__.py
A    djangoid/openid/server/trustroot.py
A    djangoid/openid/server/server.py
A    djangoid/openid/CHANGELOG
A    djangoid/openid/COPYING
A    djangoid/openid/kvform.py
A    djangoid/openid/NEWS
A    djangoid/openid/store
A    djangoid/openid/store/__init__.py
A    djangoid/openid/store/interface.py
A    djangoid/openid/README
U   djangoid
リビジョン 23 をチェックアウトしました。

hdknr@LennyOne:~/django$ echo "CREATE DATABASE djangoid DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | mysql -u root -p
Enter password:

hdknr@LennyOne:~/django$ echo "GRANT ALL on djangoid.* to ‘djangoid’@’localhost’ identified by ‘djangoid’" | mysql -u root -p
Enter password:

hdknr@LennyOne:~/django$ echo "show tables" | mysql -u djangoid djangoid –password=djangoid
hdknr@LennyOne:~/django$

hdknr@LennyOne:~/django$ cd djangoid/
hdknr@LennyOne:~/django/djangoid$ vi settings.py

hdknr@LennyOne:~/django/djangoid$ grep HDKNR settings.py
DATABASE_ENGINE = ‘mysql’           # ‘postgresql’, ‘mysql’, ‘sqlite3’ or ‘ado_mssql’. #HDKNR
DATABASE_NAME = ‘djangoid’             # Or path to database file if using sqlite3.     #HDKNR
DATABASE_USER = ‘djangoid’             # Not used with sqlite3. #HDKNR
DATABASE_PASSWORD = ‘djangoid’         # Not used with sqlite3. #HDKNR
TIME_ZONE = ‘Asia/Tokyo’                #HDKNR
LANGUAGE_CODE = ‘ja-jp’                 #HDKNR
BASE_URL = "http://hdknr.deb:8000/"                     #HDKNR

hdknr@LennyOne:~/django/djangoid$ python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_manager(settings)
  File "/var/lib/python-support/python2.5/django/core/management/__init__.py", line 340, in execute_manager
    utility.execute()
  File "/var/lib/python-support/python2.5/django/core/management/__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/lib/python-support/python2.5/django/core/management/base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/var/lib/python-support/python2.5/django/core/management/base.py", line 218, in execute
    self.validate()
  File "/var/lib/python-support/python2.5/django/core/management/base.py", line 246, in validate
    num_errors = get_validation_errors(s, app)
  File "/var/lib/python-support/python2.5/django/core/management/validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/var/lib/python-support/python2.5/django/db/models/loading.py", line 128, in get_app_errors
    self._populate()
  File "/var/lib/python-support/python2.5/django/db/models/loading.py", line 57, in _populate
    self.load_app(app_name, True)
  File "/var/lib/python-support/python2.5/django/db/models/loading.py", line 72, in load_app
    mod = __import__(app_name, {}, {}, [‘models’])
  File "/home/hdknr/django/djangoid/../djangoid/server/models.py", line 22, in <module>
    class OidStoreNonce(models.Model):
  File "/home/hdknr/django/djangoid/../djangoid/server/models.py", line 23, in OidStoreNonce
    nonce = models.CharField(maxlength = 8, primary_key = True)
TypeError: __init__() got an unexpected keyword argument ‘maxlength’

Djangoのバージョンが合わない。コミット2年前だし。。。。。。

 

いろいろ修正。

hdknr@LennyOne:~/django/djangoid$ !py
python manage.py syncdb
Creating table server_oidstoreassociation
Creating table server_oidstoresetting
Creating table users_trustedroot
Creating table users_djangoiduser
Creating table users_identityattribute
Creating table users_userattribute
Creating table users_claimeduri
Installing index for users.UserAttribute model
Installing index for users.ClaimedUri model

hdknr@LennyOne:~/django/djangoid$ python runtests.py
=== Testing microidutils ===
>>> 3 tests run, 0 failed

=== Testing openidhandlers ===
>>> 7 tests run, 0 failed

=== Testing users.models ===
>>> 2 tests run, 0 failed

=== Summary ===

でも動いていない。。。。。

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中