> > > 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 least to > get started. If you want to experiment, it may be easier to start with the > scaffolding app and modify it rather than starting to create files from > scratch before you know how anything works. > > 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
in the first case, it is saying there is no index/index.html view in the > /views folder I disagree. It's saying "invalid view". That *could* mean that it doesn't exist, but from a English-language perspective, it could mean countless other things as well including that there's something wrong with it. HTTP has header response codes - if it's missing it ideally would return a 404. If there's something wrong it should be returning a 500, etc. To understand how and where to create views and controllers, you should > peek at the documentation for a few minutes. I have and I believe I understand how to. The reason I tried * /views/index*is because that's what Annet said (or how I read her post anyway). ====== So, I've now started again. Process: 1) "New Simple Application" - Name - "Test2" 2) "Manage" -> Edit 3) Create a controller called *controller.py*. Using the editor I put this in it (from example 3): def hello3(): return dict(message=T("Hello World")) 4) Create a view called *view.html*, put this in it: <h1>hello world</h1> <h2>{{=message}}</h2> 5) Go to this URL: http://localhost:8000/test2/controller/hello3 And it works. Except it also includes all the other gumpf from the default example - why? In my previous examples I'd deleted all the extra files. I've now done that again (absolutely everything deleted except those files. Now I'm back to the error: invalid view (controller/hello3.html) So why can't I delete stuff? And/or what is it using the layout stuff when it's not specified? I thought deleting everything was OK based on a post I read by Massimo here somewhere. Thanks. -- 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.