SubClassing problem

2006-07-02 Thread Laurent Rahuel
Hi, I got a serious problem with model inheritance in my Django model. Here's a sample: from django.db import models class MPTTTree(models.Model): created_at = models.DateTimeField(_('creation date'), auto_now_add=True) updated_at = models.DateTimeField(_('last update date'), auto_now=

Django, Postgresql and Tsearch2

2006-07-19 Thread Laurent RAHUEL
Hi, Does anybody already managed to use a Tsearch2 enabled table with django ORM. Imagine you defined a model that creates this kind of table : CREATE TABLE newsitem ( id INT PRIMARY KEY, newstitle VARCHAR(255), newscontent TEXT, authorid INT, newsdate TIMESTAMP ); In order

Re: Django, Postgresql and Tsearch2

2006-07-19 Thread Laurent RAHUEL
Thank you very much Malcolm ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [

Re: Hierarchical menu model

2006-07-23 Thread Laurent Rahuel
Hi, You should better use a modified preorder tree traversal (or a nested tree) table to store your data, then you'll be able to get the whole site map with a single query. see http://www.sitepoint.com/article/hierarchical-data-database Regards, Laurent Le dimanche 23 juillet 2006 20:22, [EM

Re: Search Engine for Python and Django

2006-07-24 Thread Laurent Rahuel
Hi, Did anybody give a try to hyperestraier [1] and his python module [2] ? [1] http://hyperestraier.sourceforge.net/ [2] http://hype.python-hosting.com/ Regards, Laurent. Le lundi 24 juillet 2006 05:08, Vizcayno a écrit : > Hi: > Do your have news about the promising MerQuery? > I was looking

Re: psycopg2

2006-08-11 Thread Laurent Rahuel
Le mercredi 9 août 2006 19:42, Vance Dubberly a écrit : > > Warning psycopg2 is not supported by django. ( still in beta yada > yada yada ). Unless you're willing to eat your own pie when things go > awry, don't use it. > Snip, Fromhttp://initd.org/projects/psycopg2, you can read : """ psycop

Pb with Backwards-incompatible admin changes

2005-10-20 Thread Laurent RAHUEL
Hi, I'm trying to move my code after those changes and I can't get python django-admin.py init working. I get this error and I can't figure out why : Error: The database couldn't be initialized. 'module' object has no attribute 'INSTALLED_APPS' I got a good PYTHONPATH and a good DJANGO_SETTIN

Re: Pb with Backwards-incompatible admin changes

2005-10-20 Thread Laurent RAHUEL
Le Jeudi 20 Octobre 2005 17:44, Andreas Stuhlmüller a écrit : > Hi Laurent, > > > Error: The database couldn't be initialized. > > 'module' object has no attribute 'INSTALLED_APPS' > > Deleting your project/settings directory might help. At least it helped > when I got this error :). > > Andreas

Broken site since svn update

2005-11-15 Thread Laurent Rahuel
Hi, I was using a "rather" old version of django svn with no problems. I'm using Postgresql as backend. I updated sources a now I got a strange problem. Since the beginning, one of my models (folder) contains a property defined like this : DMI_id = meta.SlugField(db_index = True, unique = Tru

Re: Broken site since svn update

2005-11-15 Thread Laurent Rahuel
applies > to you? > > > "Laurent Rahuel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Hi, > > > > I was using a "rather" old version of django svn with no problems. I'm > > using > > Postgresql as backend.

Re: Backwards-incompatible change in development version: Password change

2005-11-21 Thread Laurent RAHUEL
Le Lundi 21 Novembre 2005 16:34, Afternoon a écrit : > On 21 Nov 2005, at 15:26, Adrian Holovaty wrote: > > There'd be no way of knowing whether the incoming password were > > plaintext vs. encrypted, because any character is allowed in a > > password. > > I would assume it's always plaintext. I'v

Re: URLField Limit 200 maxlenght

2006-03-07 Thread Laurent RAHUEL
Hi, Remember that maximum URL Length Is 2,083 Characters in Internet Explorer ;-) http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427 Regards, Laurent. Le Mardi 7 Mars 2006 15:20, Christopher Lenz a écrit : > Am 07.03.2006 um 08:17 schrieb favo: > > URLField is limit to 200 maxlen

Re: How to find out id of the first record?

2006-03-08 Thread Laurent RAHUEL
Le Mercredi 8 Mars 2006 14:26, Andy Shaw a écrit : > PythonistL wrote: > > Hi, > > is there a way how to find out id of the first record in a table? > > I will explain what I mean. > > When I insert the first record into a table the id is 1. > > when I insert next record, the id for this record wi

Re: [0.91] Model, subclassing, accessing superclass ?

2006-03-09 Thread Laurent RAHUEL
Le Jeudi 9 Mars 2006 12:58, bruno desthuilliers a écrit : Hi, > hello hello > > I must be a bit dumb, but I find myself a bit stucked with model > subclassing. Here's the problem: how does one call on the superclass > method when extending this method in the subclass ? ie: > > class Parent(meta.

Re: [0.91] Model, subclassing, accessing superclass ?

2006-03-09 Thread Laurent RAHUEL
Ooops, It should be : class Derived(Parent): def _pre_save(self): do_some_other_things_here self.my_method() Indentation problem ;-) Laurent Le Jeudi 9 Mars 2006 14:21, Laurent RAHUEL a écrit : > Le Jeudi 9 Mars 2006 12:58, br