db- db = DAL("postgres://postgres:postgres@localhost:5432/report1")
from gluon.tools import Auth auth = Auth(db) auth.define_tables(username=True,signature=False) db.define_table('register', Field('first_name', requires=IS_NOT_EMPTY()), Field('last_name', requires=IS_NOT_EMPTY()), Field('course', requires=IS_NOT_EMPTY()), Field('roll','integer', requires=IS_NOT_EMPTY()), Field('contact', requires=IS_NOT_EMPTY())) cantroller:- def report(): form=pluging_appreport.REPORTFORM(register) if form.accpept(request.vars,session): return pluging_appreport.REPORT(table=register,title='user',filter=dict(form.vars)) return dict(form=form) view:-default/report {{extend 'layout.html'}} {{=form}} is it correct??? if not then tell me the correct code? On Fri, May 20, 2016 at 5:52 AM, Dave S <snidely....@gmail.com> wrote: > On Wednesday, May 18, 2016 at 10:21:24 PM UTC-7, prashant joshi wrote: >> >> https://vimeo.com/18601633 >> according to this video i have already done shown in this video after >> adding appreport plugins i,m getting error: >> <type 'exceptions.ImportError'> Cannot import module >> 'applications.report.modules.modules' >> >> please suggest me what to do further???/ >> >> > Can you show us your code? > > /dps > > -- > 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.