Re: Obscure error installing Django

2007-11-01 Thread Julio César Carrascal Urquijo
t;[EMAIL PROTECTED]> wrote: > On Thu, 2007-11-01 at 04:50 +0000, Julio César Carrascal Urquijo wrote: > > > > > I'm installing Django on a shared hosting account but I've been > > fighting the las two hours with this error: > > > /home//django_src/django/cont

Re: Obscure error installing Django

2007-10-31 Thread Julio César Carrascal Urquijo
On Oct 31, 11:57 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-11-01 at 04:50 +, Julio César Carrascal Urquijo wrote: > > > I'm installing Django on a shared hosting account but I've been > > fighting the las two hours with this error: > > B

Obscure error installing Django

2007-10-31 Thread Julio César Carrascal Urquijo
I'm installing Django on a shared hosting account but I've been fighting the las two hours with this error: /home//django_src/django/contrib/sessions/middleware.py in process_request(self=, request=, POST:) 13 engine = __import__(settings.SESSION_ENGINE, {}, {}, ['']) 14 se

Re: Directed graph implementations for Django

2007-09-16 Thread Julio César Carrascal Urquijo
I'm a newbie on Django my self but maybe this is what you are looking for: class Category(models.Model): code = models.CharField(maxlength=200, unique=True) products = models.ManyToManyField('Product') class Product(models.Model): parent = models.ForeignKey('Post')

Efficient way to import many-to-many relations

2007-09-16 Thread Julio César Carrascal Urquijo
I have the following models (Well, very simplified): class Category(models.Model): code = models.CharField(maxlength=200, unique=True) posts = models.ManyToManyField('Post') class Product(models.Model): parent = models.ForeignKey('Post') code = models.CharField(ma

Re: Accessing db_table in _pre_save()

2006-08-15 Thread Julio César Carrascal Urquijo
That's it. Thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTEC

Accessing db_table in _pre_save()

2006-08-15 Thread Julio César Carrascal Urquijo
I'm using a cursor inside the _pre_save() method for one of my models and figured it would be wise to use the table name gerated by Django instead of just hard-coding the name. Is it possible to access the table name of a model from one of it's methods? Thanks. (I'm using Django 0.95, btw) -

Using django models on external scripts.

2006-04-16 Thread Julio César Carrascal Urquijo
Hi. I would like to use django models on external scripts to initialize/modify the database. Is it possible? I've followed the instructions of the tutorial (set DJANGO_SETTINGS_MODULE='website.settings' and importing website.settings works on python shell) but haven't been able to get it to work