thanks for your reply......
When I updated the postgresql version , the tables are created
successfully.

Now I faced another problem.....
When I start to store a data in the model through the methods of the
class ,  the following error is get.
>> from mysite.polls.models import Poll,Choice
>>> Poll.objects
<django.db.models.manager.Manager object at 0x836c44c>
>>> Poll.objects.all()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 68, in __repr__
    data = list(self[:REPR_OUTPUT_SIZE + 1])
  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 83, in __len__
    self._result_cache.extend(list(self._iter))
  File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 238, in iterator
    for row in self.query.results_iter():
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 287, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 2360, in execute_sql
    sql, params = self.as_sql()
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 396, in as_sql
    out_cols = self.get_columns(with_col_aliases)
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 740, in get_columns
    col_aliases)
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 823, in get_default_columns
    r = '%s.%s' % (qn(alias), qn2(field.column))
  File "/usr/lib/python2.4/site-packages/django/db/models/sql/
query.py", line 175, in quote_name_unless_alias
    r = self.connection.ops.quote_name(name)
  File "/usr/lib/python2.4/site-packages/django/db/backends/dummy/
base.py", line 15, in complain
    raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE
setting yet."
django.core.exceptions.ImproperlyConfigured: You haven't set the
DATABASE_ENGINE setting yet.

But I have configured the DATABASE_ENGINE name as postgresql in
settings.py

Please help me.............





On Feb 12, 10:06 am, Christophe Pettus <x...@thebuild.com> wrote:
> On Feb 11, 2010, at 8:38 PM, Newbie wrote:
>
> > NOTE : Django version is 1.1.1 and PostgreSQL version is 7.4.16
>
> Is there is a reason you are using such an old version of PostgreSQL?
>
> --
> -- Christophe Pettus
>     x...@thebuild.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to