Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread limodou
On 10/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > def setSequence(cursor, model): >from django.conf import settings > ># postgresql: reset sequence >if settings.DATABASE_ENGINE in ('postgresql_psycopg2', > 'postgresql'): > try: > f = model._meta.get_fiel

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-26 Thread [EMAIL PROTECTED]
Sorry, I somehow missed that. On Oct 26, 9:06 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-10-27 at 00:57 +, [EMAIL PROTECTED] wrote: > > I would argue against ANY implicit stripping. some of us use the > > template system for generating things like .ics files and others f

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread [EMAIL PROTECTED]
def setSequence(cursor, model): from django.conf import settings # postgresql: reset sequence if settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql'): try: f = model._meta.get_field('id') except FieldDoesNotExist: f = None if f

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread limodou
On 10/27/07, Matthew Wensin <[EMAIL PROTECTED]> wrote: > > I suspected the script as well, but when I first asked the question in > #django, I was told by a pretty experienced Djangonista that the > "django_session_iq_seq" sequence should exist. As such I assumed it was a > problem with GeoDj. >

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-26 Thread Malcolm Tredinnick
On Sat, 2007-10-27 at 00:57 +, [EMAIL PROTECTED] wrote: > I would argue against ANY implicit stripping. some of us use the > template system for generating things like .ics files and others for > which every space counts as part of the syntax. > > Please don't break the pycon website calendar

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-26 Thread [EMAIL PROTECTED]
I would argue against ANY implicit stripping. some of us use the template system for generating things like .ics files and others for which every space counts as part of the syntax. Please don't break the pycon website calendar support ;-) -Doug On Oct 26, 7:41 pm, Malcolm Tredinnick <[EMA

Re: Ticket 4438 - Middleware for contrib.sites to get the site matching the current host name

2007-10-26 Thread Malcolm Tredinnick
On Sat, 2007-10-27 at 00:49 +0200, Fabien Schwob wrote: > Hello, > > While thinking about a new site, I've searched how to serve multiple > sites using a single VHost. I've read the thread [1] about the initial > solution ( Ticket 4438 [2]) and I've seen that the ticket is still in > the "Design

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-26 Thread Malcolm Tredinnick
On Fri, 2007-10-26 at 15:04 +, Dmitri Fedortchenko wrote: > I've started using blocktrans in my templates and noticed that when > using make_messages it includes all the tabs and linebreaks around the > text that is surrounded by blocktrans tags. > > For example: > {% blocktrans %}

Re: psycopg (both 1 and 2) may drop support for multiple interpreters (used by mod_python and mod_wsgi)

2007-10-26 Thread Graham Dumpleton
On Oct 26, 11:07 pm, Joe <[EMAIL PROTECTED]> wrote: > First off, I would warn anyone out there that with about 40 virtual > hosts using Django, each apache (prefork) instance can get over 60 > megs. We didn't realize this until the server started swapping, which > was a disaster. > > We were thi

Ticket 4438 - Middleware for contrib.sites to get the site matching the current host name

2007-10-26 Thread Fabien Schwob
Hello, While thinking about a new site, I've searched how to serve multiple sites using a single VHost. I've read the thread [1] about the initial solution ( Ticket 4438 [2]) and I've seen that the ticket is still in the "Design decision needed" state after the new patch by SmileyChris. I would

ANN: Security fix to i18n framework

2007-10-26 Thread Jacob Kaplan-Moss
Hello folks -- Today we're releasing a fix for a security vulnerability discovered in Django's internationalization framework. The complete details are below, but the executive summary is that you should updated to a fixed version of Django immediately. We are releasing point-releases of all eff

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread Matthew Wensin
I suspected the script as well, but when I first asked the question in #django, I was told by a pretty experienced Djangonista that the "django_session_iq_seq" sequence should exist. As such I assumed it was a problem with GeoDj. Thanks for clearing this up, Matt On 10/26/07 2:49 PM, "Just

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread Justin Bronn
Matt, First, a question of this sort is better suited to django-users, as django-dev django-dev is for discussion of the development of Django itself. Second, from what I can tell db_dump.py is not part of the official trunk -- thus I'm not familiar with it. My priority is to have compatibility

GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread Matthew Wensin
I¹m trying to use db_dump.py to migrate a geospatial db from one machine to another, and I¹m getting the following error: ³Programming Error: relation Œdjango_session_id_seq¹ does not exist² I¹ve checked both databases and this sequence is no where to be found. Is there an error somewhere in Geo

Stripping spaces and linebreaks from blocktrans?

2007-10-26 Thread Dmitri Fedortchenko
I've started using blocktrans in my templates and noticed that when using make_messages it includes all the tabs and linebreaks around the text that is surrounded by blocktrans tags. For example: {% blocktrans %} Translate this string {% plural %}

Re: FileField question

2007-10-26 Thread Marty Alchin
Okay, just a quick update. I don't have a new patch ready yet, because I wanted to outline a couple things and ask another question. I've implemented the callable method for determining filenames, including the ability to include a subdirectory in the filename. Also, ignore my comment about reusin

Re: psycopg (both 1 and 2) may drop support for multiple interpreters (used by mod_python and mod_wsgi)

2007-10-26 Thread Joe
First off, I would warn anyone out there that with about 40 virtual hosts using Django, each apache (prefork) instance can get over 60 megs. We didn't realize this until the server started swapping, which was a disaster. We were thinking that our only option was to switch to fast_cgi to reduce m