Hello Guys,
Good Day.
I have this kind of error OperationalError: no such table: table_name
when I make a query like modelname.objects.all()
in manage.py shell. But I already did the ff:
settings.py > Databases > django.db.backends.postgresql_psycopg2
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
},
'db_foo': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'db_foo',
'USER': 'user_foo',
'PASSWORD': 'pwd_foo',
'HOST': '',
'PORT': '',
}
}manage.py syncdb
from appname.models import modelname
Did I missed something to configure?
Thanks.
Long Live Daniweb!