I added a blank __init__.py file in my DataModels folder and I receive this:
*<type 'exceptions.TypeError'>*: __init__() got an unexpected keyword
argument 'Required'
      args = ("__init__() got an unexpected keyword argument 'Required'",)
      message = "__init__() got an unexpected keyword argument 'Required'"

Do I have to add anything to the __init__.py file?

On Wed, Mar 18, 2009 at 11:54 AM, Hilbert Markus
<[email protected]>wrote:

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to