[web2py] Re: How to import MySQL database of web2py app in pythonanywhrere

2014-08-22 Thread Richard
Sorry but I just did the same and I needed to mention the db name: change DAL connection string in app to: db = DAL('mysql://user_name:password@mysql.server/database_name') [for pythonanywhere, the database_name is in the form user_

[web2py] Re: How to import MySQL database of web2py app in pythonanywhrere

2014-08-22 Thread Oli
create a database on pythonanywhere for excample: Database host adress : mysql.server Username : yourusername Database Name : db1 Password : yourpassword then go to your database modell db.py and change the default from: db = DAL('sqlite://storage.sql