Hi Ramiro,

Thanks for the fix ! I've checked the diff and this looks great :-) Also no 
need to add i18n anymore to the pip, you save some MB and some install time 
:-)

BUT I actually couldn't test it, because some other changes just prevent me 
to run any test with any runner...
It tries to apply migrations on the test DB it is creating, which is 
causing a bunch of problems !

Here is my stacktrace, I think this should happen with just about any app 
with South enabled and some migrations inside:

Traceback (most recent call last):
  File "./manage.py", line 15, in <module>
    execute_from_command_line(sys.argv)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/__init__.py",
 
line 408, in execute_from_command_line
    utility.execute()
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/__init__.py",
 
line 401, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
 
line 50, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/base.py",
 
line 244, in run_from_argv
    self.execute(*args, **options.__dict__)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
 
line 71, in execute
    super(Command, self).execute(*args, **options)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/base.py",
 
line 291, in execute
    output = self.handle(*args, **options)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/lib/python2.7/site-packages/south/management/commands/test.py",
 
line 8, in handle
    super(Command, self).handle(*args, **kwargs)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
 
line 88, in handle
    failures = test_runner.run_tests(test_labels)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/runner.py", 
line 146, in run_tests
    old_config = self.setup_databases()
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/runner.py", 
line 108, in setup_databases
    return setup_databases(self.verbosity, self.interactive, **kwargs)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/runner.py", 
line 282, in setup_databases
    verbosity, autoclobber=not interactive)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/backends/creation.py",
 
line 347, in create_test_db
    test_database=True)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/__init__.py",
 
line 159, in call_command
    return klass.execute(*args, **defaults)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/base.py",
 
line 291, in execute
    output = self.handle(*args, **options)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/lib/python2.7/site-packages/south/management/commands/migrate.py",
 
line 111, in handle
    ignore_ghosts = ignore_ghosts,
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/lib/python2.7/site-packages/south/migration/__init__.py",
 
line 200, in migrate_app
    applied_all = check_migration_histories(applied_all, delete_ghosts, 
ignore_ghosts)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/lib/python2.7/site-packages/south/migration/__init__.py",
 
line 79, in check_migration_histories
    for h in histories:
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/models/query.py", 
line 140, in __iter__
    self._fetch_all()
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/models/query.py", 
line 962, in _fetch_all
    self._result_cache = list(self.iterator())
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/models/query.py", 
line 264, in iterator
    for row in compiler.results_iter():
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/models/sql/compiler.py",
 
line 687, in results_iter
    for rows in self.execute_sql(MULTI):
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/models/sql/compiler.py",
 
line 768, in execute_sql
    cursor.execute(sql, params)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/backends/utils.py",
 
line 61, in execute
    return self.cursor.execute(sql, params)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/utils.py", 
line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File 
"/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/db/backends/utils.py",
 
line 61, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "south_migrationhistory" does 
not exist
LINE 1: ...gration", "south_migrationhistory"."applied" FROM "south_mig...

Thanks Matt

On Wednesday, October 23, 2013 4:11:48 AM UTC+2, Ramiro Morales wrote:
>
> On Tue, Oct 22, 2013 at 8:26 PM, Ramiro Morales 
> <[email protected]<javascript:>> 
> wrote: 
> > On Tue, Oct 22, 2013 at 4:33 PM, Ramiro Morales 
> > <[email protected]<javascript:>> 
> wrote: 
> >> 
> >> Could you give us more information about how to reproduce this? i.e. 
> what tests are you trying to run? etc. 
> > 
> > Never mind, I've reproduced it and opened ticket [1]12307. 
>
> This has been fixed in the 1.6.x branch and the fix will be included 
> in the soon to be tagged 1.6 rc. 
>
> Please test it and report back if you find any additional problems. 
>
> Thanks! 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fcdc2177-071c-458a-85ba-a2d64e791621%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to