[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread 黄祥
cool, why not add this configuration into web2py book? best regards, stifan -- 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 bec

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread NeoToren
*Thank you LightDot !* Your answer solved the problem immediately and elegantly: When deploying to W2P with MySQL to PythonAnywhere = PA (and as LightDot mentioned - possibly other hosting sites as well) - the DAL db connection definition should be (*Italic* is LightDot elegant suggestion): *d

[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread LightDot
AFAIK, the server name should be mysql.server, not username.pythonanywhere.com. The rest seems correct, including the username$default for the db name, which might seem odd to some. BTW, localhost is often used for a server name on various hosting providers, meaning that you are making a local