Re: Removing template newlines in

2010-05-12 Thread Peter Landry
> Consider the same example where var2 is evaluated to be false: > > > header > ... > --NEWLINE-- > ... > footer > > > The newline remains, but is displayed on a webpage because it is in > the block. > > > On May 12, 11:10 am, Peter Landry <plan

Re: Removing template newlines in

2010-05-12 Thread Peter Landry
If you want to keep the newlines in your template, you can use http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#spaceless Peter On 5/12/10 2:02 PM, "Noah Watkins" wrote: > I have a variable amount of lines that need to be displayed in a > block: > > >

Re: Saving the query object for later

2010-04-28 Thread Peter Landry
+1 to this. I had similar requirements, and initially went down the road of pickling a queryset. It became clear quickly that (at least in my case) a better solution was to have a function that translates a Form instance into a Queryset. Then serialize the form (or form data) and regenerate the

Re: middleware question

2010-04-20 Thread Peter Landry
That will add a header to the http response, not an element to the text of the xml output. There may be an easier way to do what you want with a middleware, but the only thing I can think of is to basically prepend your desired xml header to the response text and create a new HttpResponse with

Re: Google maps routes in geodjango

2010-01-27 Thread Peter Landry
Ubuntu has fairly up-to-date Postgis packages available, I believe. That might be an easier route to start from if you're unfamiliar with building from source. On 1/27/10 12:04 PM, "Alexis Selves" wrote: > Hello again, > I have another problem... > When I want to install

Re: Geodjango - viable for this task? Please give input

2010-01-27 Thread Peter Landry
On 1/27/10 1:29 AM, "cc0" wrote: > A quick and basic rundown of what I need to do, (my project idea is > still being hatched); > > 1. I have a database with a number of coordinates (we are talking > probably some ten thousand different coordinates) > > 2. I need to

Re: Reg. creating dynamic db table

2009-12-30 Thread Peter Landry
On 12/30/09 9:58 AM, "Saravanan" wrote: > Waqqas Jabbar, thank you for your answer. This is a simple solution. > By the way, I am inserting few million rows a day. I am accessing this > table from many other application. It is not a Django dedicated table. > I have an