Ops, I did it again!
  • Home
  • Classes
  • davedash.com
Sign in Subscribe

django

A collection of 2 posts
DRY with Jinja Templates
jinja

DRY with Jinja Templates

Jinja [http://jinja.pocoo.org/] is a great templating language that's used with Python. One of the easiest ways to not repeat yourself in Jinja is to use macros. Let's say you want to build a blog.  You may want a blog that makes HTML like
18 Aug 2013 2 min read
Database versus files for Images
database

Database versus files for Images

Update 2 January 2021: This was written in 2009 when virtual private servers were the rage, so I've updated it slightly to deal with our new cloud overlords. -------------------------------------------------------------------------------- Where should uploaded assets go? A habit I once had was to store the uploaded content (including images) in
18 Feb 2009 1 min read
Page 1 of 1
Ops, I did it again! © 2025
Powered by Ghost