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.

Regards
brushek


-- 
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/225da0f1-37a7-4016-8592-3f26e2ce45a9n%40googlegroups.com.

Reply via email to