hi ronn,
to access a folder in python (using import) you must place an empty
__init__.py file inside that DataModels folder.
this tells python that this folder as a package.
regards iham
On Mar 18, 2009, at 2:22 PM, Ronn Ross wrote:
> I have placed my data model in a separate folder. For example:
> DataModels/AccountData.py
>
> Now I want to import it into my main controller. I'm trying:
> from DataModels.AccountData import Accounts
>
> it give me this error when I try to run it:
> <type 'exceptions.ImportError'>: No module named AccountData
> args = ('No module named AccountData',)
> message = 'No module named AccountData'
>
> What am I doing wrong. Can someone help? thx
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---