|
You are here |
www.bugsandbunnies.org | ||
| | | | |
geoff.tuxpup.com
|
|
| | | | | It's not a super-frequent need for me, but sometimes I'd like to be able to accept markdown from users and include the rendered output on my site. This is risky, because markdown can include arbitrary html, and libraries that process it may not focus on making sure it's safe to include in a site. For a while, bleach was the common recommendation, but it's deprecated. Since then, the ammonia library, which is written in rust, has emerged as a good functional equivalent of bleach, with a very similar interface. | |
| | | | |
geoff.tuxpup.com
|
|
| | | | | I want a valid new Django secret key just often enough to need to know how to generate one quickly and easily but not quite often enough to remember it. I'm pasting the one-line command here, in hopes that I'll remember it or find it faster. (The pipe to pbcopy is Mac-specific; substitute your desktop's equivalent.) uv run python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key().replace("$","$$"),end="")' |pbcopy then paste it into the . | |
| | | | |
geoff.tuxpup.com
|
|
| | | | | Almost every time I build a web gadget, I need to send a few emails. Making sure those messages are sent when they should and look the way they should is a real weak point of django tooling, IMO. Mailpit is an easy way to run past that. The main reason I'm writing this down and posting it is that I keep forgetting about it and rediscovering it. It feels like a very intense need for a very brief time as I'm building things. | |
| | | | |
jasonsackey.com
|
|
| | | Astro description | ||