python - django.db.utils.Database error running manage.py syncdb in new project -
i running django 1.4, python 2.7 on ubuntu 12.04. started new app , created postgres 9.1 database it. entered db details in settings.py
, ran python manage.py syncdb
. included 'south' in installed apps got following error. after removing south, keep getting same error. have not created apps yet in project. main error is:
django.db.utils.databaseerror: column django_content_type.name not exist line 1: select "django_content_type"."id", "django_content_type"."na...
the complete traceback is:
creating tables ... traceback (most recent call last): file "manage.py", line 10, in <module> execute_from_command_line(sys.argv) file "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() file "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 371, in handle return self.handle_noargs(**options) file "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 110, in handle_noargs emit_post_sync_signal(created_models, verbosity, interactive, db) file "/usr/local/lib/python2.7/dist-packages/django/core/management/sql.py", line 189, in emit_post_sync_signal interactive=interactive, db=db) file "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 172, in send response = receiver(signal=self, sender=sender, **named) file "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py", line 35, in create_permissions ctype = contenttype.objects.get_for_model(klass) file "/usr/local/lib/python2.7/dist-packages/django/contrib/contenttypes/models.py", line 42, in get_for_model defaults = {'name': smart_unicode(opts.verbose_name_raw)}, file "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 134, in get_or_create return self.get_query_set().get_or_create(**kwargs) file "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 442, in get_or_create return self.get(**lookup), false file "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 361, in num = len(clone) file "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 85, in __len__ self._result_cache = list(self.iterator()) file "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 291, in iterator row in compiler.results_iter(): file "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 763, in results_iter rows in self.execute_sql(multi): file "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 818, in execute_sql cursor.execute(sql, params) file "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line 40, in execute return self.cursor.execute(sql, params) file "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute return self.cursor.execute(query, args) django.db.utils.databaseerror: column django_content_type.name not exist line 1: select "django_content_type"."id", "django_content_type"."na... ^
Comments
Post a Comment