TODO

  • Provide an example of using a newrequest subscriber to mutate the request, providing additional user data from a database based on the current authenticated userid.

  • Provide an example of adding a database connection to settings in __init__ and using it from a view.

  • Provide an example of a catchall 500 error view.

  • Redirecting to a URL with Parameters:

1[22:04] <AGreatJewel> How do I redirect to a url and set some GET params?
2some thing like return HTTPFound(location="whatever", params={ params here })
3[22:05] <mcdonc> return HTTPFound(location="whatever?a=1&b=2")
4[22:06] <AGreatJewel> ok. and I would need to urlencode the entire string?
5[22:06] <AGreatJewel> or is that handled automatically
6[22:07] <mcdonc> its a url
7[22:07] <mcdonc> like you'd type into the browser