Massimo, Thanks a lot. Now it's working fine.
Thanks
Sandeep Patel
On Mon, Sep 23, 2019 at 6:30 AM Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Posted a new _scaffold. Now both db and auth are defined in common. If you
> import common from models, you are fine.
>
> On Sunday, 22 Se
Posted a new _scaffold. Now both db and auth are defined in common. If you
import common from models, you are fine.
On Sunday, 22 September 2019 17:48:53 UTC-7, Massimo Di Pierro wrote:
>
> The problem is that your code is executed before
>
> auth.enable()
>
> in common.py. The above statement
The problem is that your code is executed before
auth.enable()
in common.py. The above statement defines the auth_user table.
I will refactor the scaffolding app to make sure common.py is imported
before models.py
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Now, I am getting another error.
#model
db.define_table('organization_info',
Field('name'),
Field('date_of_birth', 'date'),
Field('village'),
Field('block'),
Field('district'),
Field('state'),
Field('country'),
Field('pin'),
auth.signature()
)
On Sat, Sep 21, 2019 at 9:07 PM Massimo Di Pierro
Minor change of behavior. In py4web you need auth.signature() notice the ()
On Saturday, 21 September 2019 07:20:02 UTC-7, sandeep patel wrote:
>
> Hello,
>
> I am getting an error to add auth.signature in the table.
>
> #model.py
> from . import common
> auth = common.auth
>
> db.define_table('or
5 matches
Mail list logo