On Tue, Jul 23, 2013 at 10:40 AM, Shantanu Bhowmik <[email protected]>wrote:
> I'm porting a django application that works fine on my box, to appengine. > I keep getting this error: > > Tried main_page in module dashboard.views. Error was: type object 'XXX' > has no attribute 'YYY' > XXX is a class that actually doesn't have an attribute called YYY, but no > where in the main_page view function has this attribute been referred. I > see that multiple people have reported this problem in the past, but none > of the topics have a definitive solution. > > Hello Shantanu, Can you post the source code? Or provide a simplified test case? For this error to occur, something is accessing attribute YYY. You stated that the main_page view isn't accessing this attribute, but perhaps the object is being passed off to another function/file. If you're using a framework, you also need to double check what the framework is doing - does it use attribute YYY in some special way? Check that the object isn't being declared as global. If you can't find anything, try defining attribute YYY with a null value ( types.NoneType.None ) and see if any errors crop up. Side note: I see you have an @google.com email address. Note that this is a public mailing list, so don't send any code that cannot be made public. On Tue, Jul 23, 2013 at 10:40 AM, Shantanu Bhowmik <[email protected]>wrote: > PS:I'm using python runtime 2.5. Can that be a problem ? > Probably not, but it's a good idea to upgrade. It gives you performance benefits such as multithreading ( https://developers.google.com/appengine/docs/python/python25/diff27 ). ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
