johann
2015-04-30 21:08:05 UTC
I have this:
from bottle import Bottle
from controllers import *
app = Bottle()
app.route("/hello/<name>", callback=say_hello)
if __name__ == "__main__":
app.run(host='localhost', port=31415)
When I put this
app.route("/", callback=say_hello)
app.route("/hello/<name>", callback=say_hello)
The / route is never found, Page Not Found, message from Bottle, not the
browser.
Then all the examples I saw had all the routing in the initial file. I
also found the setup_route function in the documentation, but it didn't
work at all. Thanks.
--
from bottle import Bottle
from controllers import *
app = Bottle()
app.route("/hello/<name>", callback=say_hello)
if __name__ == "__main__":
app.run(host='localhost', port=31415)
When I put this
app.route("/", callback=say_hello)
app.route("/hello/<name>", callback=say_hello)
The / route is never found, Page Not Found, message from Bottle, not the
browser.
Then all the examples I saw had all the routing in the initial file. I
also found the setup_route function in the documentation, but it didn't
work at all. Thanks.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.
---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.