>
> I've taken a glance at it, but the Overview section alone is ~12,000 words
> - that's a *lot* given it's a technical manual rather than a light bedtime
> read. Instead I'm working through the examples because I learn better that
> way: http://www.web2py.com/examples/default/examples
>
You
>
>
> I think you should consider going through at least some of the
> documentation, as it will be frustrating for you and for us if you just try
> random things and keep asking questions about what you're doing wrong. The
> Overview chapter is a tutorial -- read the Intro and Overview at leas
On 5 Jan 2014, at 11:53 AM, Anthony wrote:
> On Sunday, January 5, 2014 10:52:42 AM UTC-5, pythonic...@gmail.com wrote:
> I'm starting at the start with trying to understand the structure of web2py
> and how it all fits together (reading books doesn't work for me).
>
> I think you should conside
Not sure how much more descriptive it can be -- in the first case, it is
saying there is no index/index.html view in the /views folder, and in the
second, it is saying there is no "views" controller (the request is for
views/index). To understand how and where to create views and controllers,
y
On Sunday, January 5, 2014 10:52:42 AM UTC-5, pythonic...@gmail.com wrote:
>
> I'm starting at the start with trying to understand the structure of
> web2py and how it all fits together (reading books doesn't work for me).
>
I think you should consider going through at least some of the
document
Sorry, but that doesn't seem to do it either.
I've tried all of the following.
Error "invalid view (index/index.html)"
http://localhost:8000/test/index/index.html
http://localhost:8000/test/index/index
http://localhost:8000/test/index
And the following all give: "invalid controller (views/index)
>
> My controller is called index.py:
>
>> def index():
>> return dict(message=T("Hello World"))
>
>
In that case your url should be http://localhost:8000/test/index/index
>
> And now I've edited my view to:
>
>> hello world
>> {{=message}}
>
>
>
and your view should be in views/index/inde
Thanks, I'm on example 3 which is the one this is based on. My issue isn't
that even something this simple isn't working and I don't know why.
In fact, I've already tried the controller thing (example 3) and got the
same error (same error). So I went back to basics and converted to
"hello worl
The purpose of a view is that or converting the output of a controller
action (a python function) into HTML.
you can have views/default/index.html containing only "hello world"
but you also need a file controllers/default.py containing "def index():
return dict()"
On Sunday, 5 January 2014 09
9 matches
Mail list logo