Django template tag to retrieve template filename
One useful Django template tag is to retrieve the template filename from inside the template. Unfortunately, Django built in tags do not provide one for this. However, you can write a simple tag to accomplish this. Here's are two tags, that return either t
Useful, but rarely used git commands
Oct. 17, 2016 |
git
Some useful, but rarely used and hence easy to forget `git` commands. Recording these here as a note to myself. Purpose Command Delete a Remote Tag Filenames diff between two commits List all tags, sorted by name, in reverse
How to Create a Random String
Random strings are used everywhere in computing -- mostly as keys for cryptographic signing sensitive data. So how does one go about creating one? My first thinking was to use Python code and its random library. I came up with this It does produce a random
Script to Create Secure Django Site Deployment Environment
My first production level shell script is out. Yes, after two decades spent in the depths of code, I have finally published a shell script that is worthy of being called 'code'. It's something that started as a few lines hack to update a Linux box with a s
Script to Create Secure Django Site Deployment Environment
My first production level shell script is out. Yes, after two decades spent in the depths of code, I have finally published a shell script that is worthy of being called 'code'. It's something that started as a few lines hack to update a Linux box with a s