Quinta-feira, 25 de Abril de 2013 14:27:31 UTC+1, Timothy Makobu escreveu:
--You need to catch exceptions during a commit and rollback the incomplete transaction.from django.db import connectionconnection._rollback()to rollback the current one.On Thu, Apr 25, 2013 at 4:08 PM, Pedro Silva <pedromss...@gmail.com> wrote:
I cant sync db with heroku postgresql, with sqllite works great.Can anybody help me?--
requeriments:Django==1.4.5PIL==1.1.7distribute==0.6.36dj-database-url==0.2.1django-db-log==2.2.1django-log-file-viewer==0.4psycopg2==2.5virtualenv==1.9.1erro:c:\WorkspacePY>python manage.py reset meetTraceback (most recent call last):File "manage.py", line 10, in <module>execute_from_command_line(sys.argv) File "C:\Python27\lib\site-packages\django\core\management\__ init__.py", line 443, in execute_from_command_lineutility.execute()File "C:\Python27\lib\site-packages\django\core\management\__ init__.py", line 382, in executeself.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Python27\lib\site-packages\django\core\management\base. py", line 196, in run_from_argvself.execute(*args, **options.__dict__)File "C:\Python27\lib\site-packages\django\core\management\base. py", line 232, in executeoutput = self.handle(*args, **options)File "C:\Python27\lib\site-packages\django\core\management\base. py", line 304, in handleapp_output = self.handle_app(app, **options)File "C:\Python27\lib\site-packages\django\core\management\ commands\reset.py", line 34, in handle_appsql_list = sql_reset(app, self.style, connection)File "C:\Python27\lib\site-packages\django\core\management\sql. py", line 107, in sql_resetreturn sql_delete(app, style, connection) + sql_all(app, style, connection)File "C:\Python27\lib\site-packages\django\core\management\sql. py", line 66, i n sql_deletetable_names = connection.introspection.get_table_list(cursor) File "C:\Python27\lib\site-packages\django\db\backends\postgresql _psycopg2\int rospection.py", line 33, in get_table_listAND pg_catalog.pg_table_is_visible(c.oid)""") File "C:\Python27\lib\site-packages\django\db\backends\util.py", line 40, in e xecutereturn self.cursor.execute(sql, params)File "C:\Python27\lib\site-packages\django\db\backends\postgresql _psycopg2\bas e.py", line 52, in executereturn self.cursor.execute(query, args)django.db.utils.DatabaseError: current transaction is aborted, commands ignoreduntil end of transaction blocksql:2013-04-25 11:42:54,790 [DEBUG] (0.238)SELECT c.relnameFROM pg_catalog.pg_class cLEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespaceWHERE c.relkind IN ('r', 'v', '')AND n.nspname NOT IN ('pg_catalog', 'pg_toast')AND pg_catalog.pg_table_is_visible(c.oid); args=()
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en .
For more options, visit https://groups.google.com/groups/opt_out .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment