1

Running Django Syncdb tries to create two tables with the same name "auth_group" and it quits with the error at the bottom.

python manage.py syncdb 

Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
..
Creating table auth_group

Returns this error

_mysql_exceptions.OperationalError: (1050, "Table 'auth_group' already exists")
1
  • 1
    Can you include INSTALLED_APPS definition from the settings.py? Commented May 21, 2011 at 9:53

1 Answer 1

1

Maybe you have duplicate 'django.contrib.auth' in your INSTALLED_APPS?

Sign up to request clarification or add additional context in comments.

2 Comments

There is only one reference of 'django.contrib.auth' in INSTALLED APPS. Tried commenting it out, none of contrib.auth tables are created
Check your models.py, it might contain the django.contrib.auth models (happens if you use inspectdb after the database is generated), you should only have YOUR modules there, none of the third-party ones

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.