First time here? Check out the FAQ!

Revision history  [back]

running manage.py test error

Hi,

Postgres 9.3.

When i try to run python manage.py test, I got the following error: Could somebody help me? Thanks.

Creating test database for alias 'default'...
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 49, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/South-0.8.4-py2.6.egg/south/management/commands/test.py", line 8, in handle
    super(Command, self).handle(*args, **kwargs)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 72, in handle
    failures = test_runner.run_tests(test_labels)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 381, in run_tests
    old_config = self.setup_databases()
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 317, in setup_databases
    self.verbosity, autoclobber=not self.interactive)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 256, in create_test_db
    self._create_test_db(verbosity, autoclobber)
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 312, in _create_test_db
    suffix = self.sql_table_creation_suffix()
  File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/creation.py", line 38, in sql_table_creation_suffix
    assert self.connection.settings_dict['TEST_COLLATION'] is None, "PostgreSQL does not support collation setting at database creation time."
AssertionError: PostgreSQL does not support collation setting at database creation time.

running manage.py test error

Hi,

Postgres 9.3.

When i try to run python manage.py test, I got the following error: Could somebody help me? Thanks.

Creating test database for alias 'default'... Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 459, in execute_manager utility.execute() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 49, in run_from_argv super(Command, self).run_from_argv(argv) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) self.execute(args, *options.__dict__) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) self.handle(args, *options) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/South-0.8.4-py2.6.egg/south/management/commands/test.py", line 8, in handle super(Command, self).handle(*args, **kwargs) self).handle(args, *kwargs) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 72, in handle failures = test_runner.run_tests(test_labels) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 381, in run_tests old_config = self.setup_databases() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 317, in setup_databases self.verbosity, autoclobber=not self.interactive) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 256, in create_test_db self._create_test_db(verbosity, autoclobber) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 312, in _create_test_db suffix = self.sql_table_creation_suffix() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/creation.py", line 38, in sql_table_creation_suffix assert self.connection.settings_dict['TEST_COLLATION'] is None, "PostgreSQL does not support collation setting at database creation time." AssertionError: PostgreSQL does not support collation setting at database creation time.

time.

running manage.py test error

Hi,

Postgres 9.3.

When i try to run python manage.py test, I got the following error: Could somebody help me? Thanks.

Creating test database for alias 'default'... Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 459, in execute_manager utility.execute() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 49, in run_from_argv super(Command, self).run_from_argv(argv) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(args, *options.__dict__) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(args, *options) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/South-0.8.4-py2.6.egg/south/management/commands/test.py", line 8, in handle super(Command, self).handle(args, *kwargs) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/core/management/commands/test.py", line 72, in handle failures = test_runner.run_tests(test_labels) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 381, in run_tests old_config = self.setup_databases() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/test/simple.py", line 317, in setup_databases self.verbosity, autoclobber=not self.interactive) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 256, in create_test_db self._create_test_db(verbosity, autoclobber) File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/creation.py", line 312, in _create_test_db suffix = self.sql_table_creation_suffix() File "/home/ec2-user/teachqa/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/creation.py", line 38, in sql_table_creation_suffix assert self.connection.settings_dict['TEST_COLLATION'] is None, "PostgreSQL does not support collation setting at database creation time." AssertionError: PostgreSQL does not support collation setting at database creation time.