Re: Problem with Mysql database

2007-09-07 Thread Nader
Indeed, the problem was that both of the tables were defined in database. It has been solved by deleting of Dataset. Thank! On Sep 6, 4:37 pm, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > Nader skrev: > > > I have used 'inspectdb' to produce the model, because I had a dump > > mysql file. In Meta

Re: Problem with Mysql database

2007-09-06 Thread Nis Jørgensen
Nader skrev: > I have used 'inspectdb' to produce the model, because I had a dump > mysql file. In Meta section of model I have defined the table name: > > class Meta: > db_table = 'Dataset' > > Besides If I check the application model with "python manage.py sqlall > dataset" I see the sam

Re: Problem with Mysql database

2007-09-06 Thread Nader
I have used 'inspectdb' to produce the model, because I had a dump mysql file. In Meta section of model I have defined the table name: class Meta: db_table = 'Dataset' Besides If I check the application model with "python manage.py sqlall dataset" I see the same name which has been defi

Re: Problem with Mysql database

2007-09-06 Thread Russell Keith-Magee
On 9/6/07, Nader <[EMAIL PROTECTED]> wrote: > > I can directly get information from mysql session : > > mysql> select datasetname from dataset; ... > But if I want to get information of the same dataset I got the empty > list: > > >>> from ipdc.dataset.models import Dataset > >>> Dataset.objects

Problem with Mysql database

2007-09-06 Thread Nader
For a project the setting of database in 'settings.py' file is as : DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'ipdc' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '/path/mysql-data/mysql.sock' DATABASE_PORT = '' I can directly get information from mysql session : mysql> select datas