On Tuesday, February 2, 2021 at 11:54:43 AM UTC-8 brushek wrote: > wtorek, 2 lutego 2021 o 20:51:16 UTC+1 brushek napisał(a): > >> poniedziałek, 1 lutego 2021 o 10:50:51 UTC+1 snide...@gmail.com >> napisał(a): >> >>> >>> 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? >>> >> >> hi, the function is in default.py controller in directory >> welcome/controllers/ and view is next to generic.html file, in >> welcome/views/ directory. >> > > Thank You for Your questions. And sorry for not RTFM :). The view is > working correctly, after moving it to the default welcome/views/default > directory. Will try do my best to not bother You with such stupid cases... >
Most of us have our own record of missing something ... like "migration_enabled" /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/da11db50-00b0-472c-bf69-c44a6615d284n%40googlegroups.com.