mple 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 wrote:
>> If you want to ke
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:
>
>
> header
> {% if var1 %}{
+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
Que
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
that
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 PostGIS using this
> htt
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 relate these coordinates to s
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 external database reader wit
7 matches
Mail list logo