[web2py] Re: Web-page freezes on db.define_table

2011-12-21 Thread Axel
It must have been the files in web2py/applications//database/. I will remember to try this if the problem occurs again. Dropping the table might not be an option in the future... Thanks again for your help.

[web2py] Re: Web-page freezes on db.define_table

2011-12-21 Thread Axel
I just deleted and unzipped Web2Py again. And now it works. :) Perhaps it was my Python indentation, or that when I manually created the table in MySQL I used the wrong field type. I don't really know. Anyway, thank you for the help!

[web2py] Re: Web-page freezes on db.define_table

2011-12-21 Thread Axel
Johann Spies writes: > Use the ticket interface to go to the line of code that caused the problem.  Maybe there is something in the controller that causes this.RegardsJohann The ticket interface says: Traceback (most recent call last): File "gluon/restricted.py", line 204, in restricted Fi

[web2py] Re: Web-page freezes on db.define_table

2011-12-21 Thread Axel
Johann Spies writes: > The error message supplies the answer:  "Duplicate column name > 'nyckel'You cannot have two fields in the same table with the same name.RegardsJohann I can't see that I have duplicate column names in the statement: db.define_table('testdata',Field('idtestdata'),Field('nyc

[web2py] Web-page freezes on db.define_table

2011-12-21 Thread Axel
But when accessing the app I get an error ticket: Ticket ID 127.0.0.1.2011-12-21.11-11-59.27d5caca-b9cf-4f73-b3e7-4a7a61318e19 (1060, u"Duplicate column name 'nyckel'") Shouldn't define_table create or just use the table which is already present in the database? Any suggestions are welcome. Regards, Axel