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, 
you should peek at the documentation for a few minutes.

Anthony

On Sunday, January 5, 2014 2:06:14 PM UTC-5, pythonic...@gmail.com wrote:
>
> 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)"
> http://localhost:8000/test/views/index/index
> http://localhost:8000/test/views/index
>
> So still no progress. More descriptive error messages would be useful. Is 
> there no way to enable some during development?
>
> Thanks,
> Jonathan
>
> On Sunday, January 5, 2014 6:16:57 PM UTC, Annet wrote:
>>
>>
>>
>>> 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:
>>>
>>>> <h1>hello world</h1>
>>>> <h2>{{=message}}</h2>
>>>
>>>
>>>  
>> and your view should be in views/index/index.html
>>
>> in web2py the url has the following pattern 
>> host:port/application/controller/function
>>
>>
>> Regards,
>>
>> Annet
>>
>

-- 
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/groups/opt_out.

Reply via email to