Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1725 closed defect (worksforme)

syncdb runs into error (after creating users?)

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


i get an error with syncdb:

$ ./ syncdb
Traceback (most recent call last):

File "./", line 11, in ?


File "django/core/", line 1226, in execute_manager


File "django/core/", line 1152, in execute_from_command_line


File "django/core/", line 472, in syncdb

app=app, created_models=created_models)

File "django/dispatch/", line 347, in send


File "django/dispatch/", line 47, in robustApply

return receiver(*arguments, named)

File "django/contrib/auth/", line 34, in create_permissions

File "django/db/models/", line 185, in save

','.join(placeholders)), db_values)

File "django/db/backends/", line 12, in execute

return self.cursor.execute(sql, params)

File "django/db/backends/sqlite3/", line 69, in execute

return Database.Cursor.execute(self, query, params)

pysqlite2.dbapi2.IntegrityError: columns content_type_id, codename are not unique

Change History (2)

comment:1 Changed 12 years ago by Malcolm Tredinnick <malcolm@…>

Can you attach your and the models for any apps you are trying to install? This is obviously not a normal error -- syncdb normally runs smoothly -- so we will need some more information to work out if there is a bug in Django here.

comment:2 Changed 12 years ago by Adrian Holovaty

Resolution: worksforme
Status: newclosed

Seems like something's wrong with the installation, because I can't recreate this. Clear it out and try again.

Note: See TracTickets for help on using tickets.
Back to Top