auth_signature creates these 4 fields:created_oncreated_bymodified_onmodified_by
You are trying to access a field called dateofcreation which doesn't exist.In default\index replace dateofcreation with created_on.
terça-feira, 7 de Maio de 2019 às 15:52:05 UTC+1, Fabio Gubler escreveu:Hi,I' new to web2py and I try to follow Massimo Di Pierro video on YouTube/Vimeo.When I change in db1.py the 4 following 4 rows:Field('dateofcreation', 'datetime'),Field('created_by', 'reference auth_user'),Field('modified_by', 'reference auth_user'),Field('modified_on', 'datetime'))withauth.signatureI get a error ticket.It seems that in the default/index.html at the line 131 (response.write(row.timeofcreation)) raise the following error:AttributeError()
Could somebody help me to overcome this problem?Tanks in advance.Have a good day.
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ac285539-985f-49c8-8f92-5d8d3286844e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.