you are trying to use the bash shell to interpret python commands! if you want to create a model file, write it with an editor as you would do with any source code file. /home/csvstudio$ emacs db_departement.py
In place of emacs use your favorite text editor (vi, nano, joe, pycharm ... whatever). To know how to create a table in web2py see the book: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer Look in the scaffolding welcome application that comes with web2py, the file db.py is a working example that you can use to get started with models. mic 2014-08-03 21:57 GMT+02:00 eric cuver <amihaconsult...@gmail.com>: > hello, > > i tried tu create webpy model from csv file with this command : > /home/csvstudio# for line in open('db_departement.py','r'): print line, > > the terminal answer- bash: Erreur de syntaxe près du symbole inattendu « > ( » > > somebody look where my error. > > thanks > > > -- > 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.