Opened 18 years ago

Closed 18 years ago

Last modified 18 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

Description

i get an error with syncdb:

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

File "./manage.py", line 11, in ?

execute_manager(settings)

File "django/core/management.py", line 1226, in execute_manager

execute_from_command_line(action_mapping)

File "django/core/management.py", line 1152, in execute_from_command_line

action_mapping[action]()

File "django/core/management.py", line 472, in syncdb

app=app, created_models=created_models)

File "django/dispatch/dispatcher.py", line 347, in send

sender=sender,

File "django/dispatch/robustapply.py", line 47, in robustApply

return receiver(*arguments, named)

File "django/contrib/auth/management.py", line 34, in create_permissions

p.save()

File "django/db/models/base.py", line 185, in save

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

File "django/db/backends/util.py", line 12, in execute

return self.cursor.execute(sql, params)

File "django/db/backends/sqlite3/base.py", 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 by Malcolm Tredinnick <malcolm@…>, 18 years ago

Can you attach your settings.py 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 by Adrian Holovaty, 18 years ago

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