Re: Strip empty lines in rendered templates?

2009-03-26 Thread darryl.hebbes
Or simply remove the return after the forloop statement. Like so. {% for entry in entries %}{{ entry.title }} {% endfor %} should give you Title 1 Title 1 Title 1 On Mar 15, 9:13 pm, Benjamin Buch wrote: > Hi, > > is there a way to tighten up the output that Django renders? > Especial

Re: Update a a single field

2008-11-03 Thread darryl.hebbes
Aah yes that worked. Thanks Daniel. To clarify my own thoughts, a python example: For example, setattr(x, 'foobar', 123) is equivalent to x.foobar = 123 On Nov 3, 3:44 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 3, 1:41 pm, "darryl.hebbes" <[EMAIL

Update a a single field

2008-11-03 Thread darryl.hebbes
Hi, I want to do something like this, I wish to make the 'fieldname' dynamic, I am just trying to update a field without a hard coded name... the name is passed in via a form. --- def updateProfile(request): fieldname = request.POST["id"] fieldid = int(request.POST["