postgresql - Django can't syncdb after drop/create database -


I wanted to reset a database and had released a dropdown database after which a database was created on a postgrascape server Which is a dzenggo ap, via psycopg2

When I do ./manage.py syncdb I get the following error:

  root @ ns204612: / home / someproject / prod / django- Mingus / Mingus # ./manage.py syncdb Tracebacks (Most recent call end): File "./manage.py", in line 16, in & lt; Module & gt; Execute_manager (settings) file "/home/someproject/prod/lib/python2.6/site-packages/django/core/management/__init__.py", line 362, in the execute_manager utility. Execute () file "/ home / someproject /prod/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, execute in itself. Fetch_command (sub-order). Run_from_argv (self.argv) file "/ home / someproject / prod /lib/python2.6/site-packages/django/core/management/base.py", line 19, in run_from_argv self.execute (* args, * * Option .__ dict__) file "/ home / someproject / prod / lib /python2.6/site-packages/django/core/management/base.py", line 222 executed output = self.handle (* args, ** Option) file "/ home / someproject / prod / lib / python2.6 / site-packages / django / core / management / base.py", line 351, handle return self. "/home/someproject/prod/lib/python2.6/site-packages/django/core/management/commands/syncdb.py" in the Handle_Nogs (** option) file, in line 52, handle_noargs tables = connection.introspection. Table_names () file "/home/someproject/prod/lib/python2.6/site-packages/django/db/backends/__init__.py", line 491, self.get_table_list (cursor) file "/ home in the return of table_name / Someproject /prod/lib/python2.6/site-packages/django/db/backends/postgresql/introspection.py ", line 30, get_table_list and pg_catalog.pg_table_is_visible (c.oid)" "" file "/ home / Some projects /prod/lib/python2.6/site-packages/django/db/backends/util.py ", line 19, self.cursor.execute (sql, params) psycopg2.InternalError: returned in execution returned The standard transaction has been canceled, order transaction block  

and by the end of the PostGraceclose log I received the following error:

  2010-01-24 01 : 08: 02 CET error: The relation "django_site" does not exist 2010-01-24 01:08:02 CET Statement: Select "ID", "Dijanga_Site". "Domain", "dijanga_site". "Name" to "DJGSITE" WHERE "Django_site". "Id" = 1 Order "django_site" by "domain" ASC 2010-01-24 01:08:02 CET error: Current Transaction has been canceled, the command has been ignored until the end of the transaction block 2010- 01-24 01:08:02 CET Statement: Select c.relname from pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON.N.oid = c.relnamespace WHERE c CCT log in ('R', 'V', ' ') And NNN.N.N.J. CET log: Could not get data from client: Connection reset by peer 2010-01-24 (PG_Cole ',' PG_Tost ') and PG_P_G_table_IS_Visible (COD) 2010-01-24 01:08:02 CET Log: Could not get data from client: connection reset by peer 2010-01-24 CET log: Unexpected EOF on client connection  

How can I fix this?

This was an issue in the DNS-request that is used by DJGengo-Mingus. Django has some DB introspection during syncdb and a related import has raised this exception if you want to pull the latest bits with the DJgo-request or Dzego-Mangus, you will be fine.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -