Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1725 closed defect (worksforme)

syncdb runs into error (after creating users?)

Reported by: anonymous Owned by: adrian
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: UI/UX:

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

Attachments (0)

Change History (2)

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

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 Changed 8 years ago by adrian

  • Resolution set to worksforme
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.