Sorry, I meant roderic, 2009/5/30 Ian Lewis <[email protected]>
> Nick, > > Are you using something like appengine-patch or appengine_django to write > your application? > > > On Sat, May 30, 2009 at 3:49 AM, Nick Johnson (Google) < > [email protected]> wrote: > >> >> Hi roderic, >> >> You can't use a an App Engine datastore ReferenceProperty to refer to >> a Django model instance. >> >> -Nick Johnson >> >> On Wed, May 27, 2009 at 12:51 PM, roderic <[email protected]> wrote: >> > >> > Hello, >> > The problem that I'm having is that my cron job seems to break on the >> > import of my models. The traceback looks like this: >> > >> > <class 'google.appengine.ext.db.KindError'>: reference_class must be >> > Model or _SELF_REFERENCE >> > Traceback (most recent call last): >> > File "/base/data/home/apps/rcapp01/1.333786861669922384/cron.py", >> > line 1, in <module> >> > from callme.models import CAction >> > File "/base/data/home/apps/rcapp01/1.333786861669922384/callme/ >> > models.py", line 9, in <module> >> > class CUser(db.Model): >> > File "/base/data/home/apps/rcapp01/1.333786861669922384/callme/ >> > models.py", line 11, in CUser >> > user = db.ReferenceProperty(User) >> > File "/base/python_lib/versions/1/google/appengine/ext/db/ >> > __init__.py", line 2577, in __init__ >> > raise KindError('reference_class must be Model or >> > _SELF_REFERENCE') >> > >> > The code in question deals with the ReferenceProperty that I am using >> > to extend the basic django user. The code for that looks like this: >> > >> > from google.appengine.ext import db >> > from django.contrib.auth.models import User >> > >> > # Create your models here. >> > class CUser(db.Model): >> > user = db.ReferenceProperty(User) >> > >> > I don't seem to have much problem interacting with the profile through >> > the web requests, but when the cron job tries to run it blows up. I am >> > not going to include the cron job as you can see that the traceback >> > happens on the import. >> > >> > Any thoughts on this? Why would the cron job be blowing up on import? >> > Have I set something up wrong? The development environment doesn't >> > seem to blow up when this happens. >> > >> > Thanks in advance. >> > >> > > >> >> >> >> > > > -- > ======================================= > 株式会社ビープラウド イアン・ルイス > 〒150-0012 > 東京都渋谷区広尾1-11-2アイオス広尾ビル604 > email: [email protected] > TEL:03-5795-2707 > FAX:03-5795-2708 > http://www.beproud.jp/ > ======================================= > -- ======================================= 株式会社ビープラウド イアン・ルイス 〒150-0012 東京都渋谷区広尾1-11-2アイオス広尾ビル604 email: [email protected] TEL:03-5795-2707 FAX:03-5795-2708 http://www.beproud.jp/ ======================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
