Hello,

 i have a problem in the creation of new database

I wrote my design into db.py :

and then i run my application the tables was created only in
"appadmin", but when i show tables into mysql it displayed an empty
set.

then any update in the tables it cause
"
ProgrammingError: (1146, "Table 'MLD.user' doesn't exist")
"

so any one have any idea what is the problem?

The second issue :

i have a table and i want to make a relation to itself?

as :

db.define_table("location_unit)",
      SQLField("name", "string", notnull=True),
      SQLField("parentLocation", db.location_unit),
      )
it cause "
    return dict.__getitem__(self,key)
     KeyError: 'location_unit'
"

Please could any one help me ??

Thanks

Reply via email to