Jon, I see you are pushing new information into your brains too fast :)
Take a rest. Sleep well. I'm serious. Let your brain to digest. Then go 
back to the beginning of the book or/and review the beginning of the video 
about the basic concepts of the web2py framework.
Try to understand the workflow from the request to the response. Clarify 
how views are used and how templates works. Then examine the generic views 
(generic.html, generic.json, etc.). Try to create your own view. Play with 
different data types in the response. You'll get it.

A little hint: if you did not define your own view the generic view will be 
used. And if you take a look inside the generic.html file then you will 
find a helper function BEAUTIFY(). Read about it in the book.

Good night

Rimas


On Wednesday, March 23, 2016 at 9:23:34 PM UTC, Literate Aspects wrote:
>
> Hi Rimantas, 
>
> Please, what is the difference between:
>
> def index(): return "Hello from MyApp"
>
> def index(): return dict(message="Hello from MyApp")
>
> I see the different RUN screen outputs, but do not have a definition of:
>
> RETURN
> RETURN DICT
>
> to be able to determine the specific differences, is there somewhere that 
> has a list of commands with definitions?
>
> Any suggestions greatly appreciated.
>
> Jon
>
> ps.  collecting those golden nuggets of KNOWLEDGE !
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to