I haven’t seen Sinners, but this cover in the OST truly slaps... and on theme for #DjangoConEurope !
I'm excited to visit this specific Lidl while I'm at #DjangoConEurope
#Python mini tip: The easiest way to create a signature-preserving function decorator is with `contextlib.contextmanager`. Use it on a generator function with one `yield` statement, and it will create a combined context manager and function decorator. image
#GitHub tip: Don’t post “Any updates?” style comments on open source threads. Any updates would be there already. Open source is a gift; bugging maintainers acts like you're entitled to results. I just mark such comments as spam. If you want to see something done, do something to help: research specifications, find an existing implementation, write a test case, draft the docs, write a draft implementation, do some code review, test the PR locally, or just anything to help the project. image
Django + htmx tip: Use hx-headers to pass Django’s CSRF token with all requests. This allows htmx to make data-modifying requests with methods like POST or PUT. More details: #Django #htmx image