On Sunday, January 31, 2021 at 3:05:09 PM UTC-8 brushek wrote: [...] > def qrcode(): > response.view = 'qrcode.html' > response.flash = 'you clicked on register' > return dict(message="you clicked on register") > > I have a question about response.view - when I comment this out, I get in > browser: > > invalid view (default/register.html) > > why view isn't pick based on controller's function name now ? > > What directory is your view in? What controller is your function in?
/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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2a7a8e19-2cc1-447f-be51-ffc6713aad6dn%40googlegroups.com.