Web.py Routing Seems To Keep Breaking
For some reason, every time I run my web app it comes up with new errors, either it can't find my pages, or Attribute errors, or KeyErrors and I don't know why. I'm following a tut
Solution 1:
Your urls is written using braces {} rather than the correct parentheses (). Braces make the items a set, which does not guarantee order. Parentheses make it a tuple which does guarantee order.
web.py goes through url, two-by-two, assuming the first is the url part and the second is the class to handle it. Without a guaranteed ordering, your results, as you see, are random.
Post a Comment for "Web.py Routing Seems To Keep Breaking"