Re: '"%s/" % var' preferred to 'var + "/"'?

2008-08-21 Thread lingrlongr
You can also map a dictionary of values to the format string: >>> num = 99 >>> obj = 'red balloons' >>> print '%(a)d %(b)s' % {'a': num, 'b': obj} 99 red baloons Keith On Aug 22, 12:28 am, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote: > On Thu, Aug 21, 2008 at 10:41 PM, Joost Cassee <[EMAIL PROTE

Re: Flatpages with multiple blocks/sections

2008-08-20 Thread lingrlongr
However, it'd still be nice to see these chunks be somehow related to a flatpage. Maybe one day the we'll have a "chunky-flatpages" app so they can share some sort of relation... On Aug 20, 10:57 pm, lingrlongr <[EMAIL PROTECTED]> wrote: > I think that will work we

Re: Flatpages with multiple blocks/sections

2008-08-20 Thread lingrlongr
I think that will work well. Thanks! =) On Aug 20, 10:40 pm, Justin Lilly <[EMAIL PROTECTED]> wrote: > You may want to check out django-chunks. I'm pretty sure it does what   > you are looking for. > >   -justin > > On Aug 20, 2008, at 4:41 PM, lingrlongr <[EMAI

Flatpages with multiple blocks/sections

2008-08-20 Thread lingrlongr
I have found that the Flatpages application is very useful, especially in projects where you create a site for someone else and you allow them to change the content as they need. The only drawback with the application, however, is that there's only one block/section of modifiable content. My sol