If you're getting that error, either this code is not in a web2py model or controller file, or something is very wrong with your setup. We need more details.
Anthony On Thursday, June 2, 2016 at 1:42:08 AM UTC-4, prashant joshi wrote: > > it is not work.... it show error "NameError: name 'DAL' is not defined" > > On Thu, Jun 2, 2016 at 1:47 AM, 黄祥 <steve.van.chris...@gmail.com> wrote: > >> pls try : >> mysql://pythonuser:MySQLpwd@mysql.server/pythonuser$MySQLdb >> >> note : >> - pythonuser is your pythonanywhere username >> - MySQLpwd is your MySQL Password in pythonanywhere >> - MySQLdb is your database mysql that store data for application >> >> 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 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 web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.