I have managed to deploy to *PythonAnywhere* (*PA*) the MySQL database in a
matter of minutes!
Then I have re-created the Web2Py , uploaded and installed my application
from the localhost - literally 5 minutes !!
The familiar Web2Py interface was ready like a charm...so the description
of PA in the W2P book as the simplest solution was correct...
Life is good...All is great ...EXCEPT...
What should be the *DAL - database connection definition* when *NOT* *on a
localhost *?
The definitions from the local machine obviously need to change. So I have
tried on PA in db.py:
db = DAL('mysql://
*username:[email protected]/username$default'*)
*username* = the PA username (tried *root* - of course didn't work)
*mysqlpassword* = the pwd for the mysql instance at PA
*username$default = * the database name which is equal to... *username$default
*(tried *localhost* which didn't work)
The above doesn't work and W2P cannot connect to MySQL...
I must be doing something really stupid since I am a newbie with W2P and
PA...
Any ideas ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.