uuid template tag
A simple template tag that generates a random UUID and stores it in a name context variable.
- template-tag
- uuid
A simple template tag that generates a random UUID and stores it in a name context variable.
This snippet of code will convert those pesky "smart quote" characters (usually from Microsoft products) to standard quotes.
I recently had to write a custom template tag which checks to see if a value exists in a list variable from within a Django template. This was my first ever attempt at writing a template tag so any feedback would be appreciated.