Hello. Coming over from the php world and I started a new job where we use web2py and python. I'm trying to wrap my head around how it's handling the paths to pages I create and I can't find my answers in the docs. Probably I'm just missing it but I can't seem to figure it out.
I've already created the layout.html and all the page.html files located in views/default/page.html. I added <code> def page(): return dict() </code> in default.py. Now I'm trying various methods of adding anchors into my html and everything returns an invalid error. For example, <a href="/page">, <a href="~/page">, <a href={{URL...something}}> and nothing seems to work. I'm running it from 127.1.1.8000. I'm at home so I don't have my specific code here. I'm actually the designer so I'm running the web2py OSX Lion app while the developers are running Ubuntu and I've noticed a couple of things are different based on that. Perhaps the way they were doing it needs to be changed for the web2py app? Already some things that work in Linux had to be changed to work on my Mac. Also, what is the correct method to reference css and <img src> images that are located in the static/images directory? Thanks and I look forward to meeting more python developers and getting to know web2py a bit more. I'm coming over from a background in php, asp, and vb. I hate asp and vb and was forced into it where I used to work and so I'm super excited to be working with python now instead. The only good thing I took from asp was the C and that helps with iOS so it wasn't all bad but... I'll shut up now. Thanks for your help.