Discussion:
[bottlepy] What is the correct way to access endpoints using get_url() or url()?
n***@gmail.com
2018-09-20 16:13:51 UTC
Permalink
i'm using Bottle. I have defined several routes with their corresponding
view function for example

/log/<page>/showlogs

What is the correct way to access those routes using get_url? I try to:

get_url( 'log', page=page )
get_url( 'showlogs' )

and the error iam receiving is:

NameError: name 'get_url' is not defined

If i try to use `url' instead i get this error:

bottle.RouteBuildError: ('No route with that name.', 'log')
bottle.RouteBuildError: ('No route with that name.', 'showlogs')

How am i supposed to access the endpoints?!
--
--
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.
Continue reading on narkive:
Search results for '[bottlepy] What is the correct way to access endpoints using get_url() or url()?' (Questions and Answers)
10
replies
What are TCP, UDP, Proxy, port, local host, ip address?
started 2006-11-26 20:22:29 UTC
computer networking
Loading...