Moving movies.py to root resolves the problem. It seems to be a path issue. Tnx.
---------- Forwarded message ---------- From: Mchurch <[email protected]> Date: 2011/11/3 Subject: Mongodb ming To: TurboGears <[email protected]> Hi guys, please help me. I'm absolutely a newbie with Turbogears but I know I'll fall in Love with it.. I'm trying to make some practise with mongodb but with no success :( My steps 1) project is named "Movies", and i create it with easy_install --ming option 2) added to _init_.py " from Movies import Movie" . Movies is a python file (module right?) Movie is my class inside Movies from ming import Field, schema from ming.declarative import Document class Movie(Document): class __mongometa__: session = session name = 'Movie' _id = Field(schema.ObjectId) title = Field(str) Now in my virtual env\Movies project running console (python) i can do nothing with my collection. First command import Movies is ok, but after that i get always error "File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'Movie'" I'm already lost somewhere.... Tnx to everybody and excuse me for my poor english. -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

