Hi. all.
I got a strange problem when syncdb.
The syncdb output just like following, as you can see the
auth_group_permissions table create 2 times. It break unit testing
with './manage.py test' process.
The thing happens both mysql and sqlite3 backend.
And I check the models.py code in testreviews.TestReviewCase the table
last create, nothing writes about group permission. I can provide it
if need.
Any suggestion ?
=============================
Creating table tcms_reviews
Processing testreviews.TestReviewCase model
Creating table tcms_review_cases
Creating many-to-many tables for auth.Group model
Creating many-to-many tables for auth.User model
Creating many-to-many tables for auth.Group model
Traceback (most recent call last):
File "tcms/manage.py", line 25, in <module>
execute_manager(settings)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/core/management/commands/syncdb.py", line 93, in handle_noargs
cursor.execute(statement)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/db/backends/util.py", line 19, in execute
return self.cursor.execute(sql, params)
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/
django/db/backends/sqlite3/base.py", line 193, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: table "auth_group_permissions" already
exists
=============================
Xuqing
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.