import class

12 views
Skip to first unread message

Victor

unread,
May 6, 2012, 10:05:16 PM5/6/12
to google-a...@googlegroups.com
Good evening,

extramente my question should be simple, but have not found the answer: s

I have a test project named BRYLIX.

In the main directory have a file called home.py
In this file would make the import of class "person" in this sub-directory named model.

The Person class is as follows:


from db import google.appengine.ext

class Person (db.Model):
     db.StringProperty name = ()
     db.StringProperty nickname = ()
     email = db.StringProperty ()
     db.StringProperty password = ()
     db.StringProperty session = ()
     created = db.DateTimeProperty (auto_now_add = True) 
Reply all
Reply to author
Forward
0 new messages