issues: 635077656

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason
635077656 MDU6SXNzdWU2MzUwNzc2NTY= 822 request.url_vars helper property 9599 closed 0   5512395 2 2020-06-09T03:15:53Z 2020-06-09T03:40:07Z 2020-06-09T03:40:06Z OWNER  

This example:

from datasette.utils.asgi import Response
import html

async def hello_from(scope):
    name = scope["url_route"]["kwargs"]["name"]
    return Response.html("Hello from {}".format(

def register_routes():
    return [
        (r"^/hello-from/(?P<name>.*)$"), hello_from)

Would be nicer if you could easily get scope["url_route"]["kwargs"]["name"] directly from the request object, without looking at the scope.

107914493 issue  

Links from other tables

Powered by Datasette · Query took 0.865ms · About: github-to-sqlite