Django

Code

Ticket #1725 (closed: worksforme)

Opened 3 years ago

Last modified 2 years ago

syncdb runs into error (after creating users?)

Reported by: anonymous Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Change History

04/30/06 06:47:53 changed by Malcolm Tredinnick <malcolm@pointy-stick.com>

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.

05/04/06 22:09:07 changed by adrian

  • status changed from new to closed.
  • resolution set to worksforme.

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


Add/Change #1725 (syncdb runs into error (after creating users?))




Change Properties
Action