django base template generator