Google App Engine 用の Django アプリを作成しています。私は django-nonrel を使用していますが、Google App Engine モデルを使用しています。
Django の管理サイトも使用したいと考えています。
航空会社アプリの models.py は次のとおりです。
google.appengine.extインポートデータベースから クラス航空会社(db.Model): 名前 = db.StringProperty (必須 = True) 説明 = db.TextProperty() メモ = db.TextProperty() クラスメタ: verbose_name_plural = '航空会社' def __unicode__(自己): self.name を返す
私のadmin.pyは次のとおりです。
django.contribインポート管理者から from Airlines.models import * admin.site.register(航空会社)
GAE runserver を実行すると、次のエラーが発生します。
/admin/ の TypeError 「PropertiedClass」オブジェクトは反復可能ではありません
django-nonrel adminで Google App Engine モデルを使用できませんか?