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
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
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
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
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
5 matches
Mail list logo