﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27366	KeyError: 'no_color' in base.py, l. 314	Geoffrey R.	nobody	"Hello.

I played with Django Mezzanine [http://mezzanine.jupo.org/] and when creating the database with the following settings:


{{{
USE_MODELTRANSLATION = True

LANGUAGE_CODE = 'en'

LANGUAGES = (
    ('en', _('English')),
    ('fr', _('French'))
)
}}}

and executing

{{{
python manage.py createdb
}}}

as mentionned on mezzanine's website, I get the following Traceback after having provided my login / email / pwd and saying that I want to translate fields:

{{{
[...]
Django-modeltranslation is installed for this project and you have specified to use i18n.
Would you like to update translation fields from the default ones? (yes/no): yes
Traceback (most recent call last):
  File ""manage.py"", line 14, in <module>
    execute_from_command_line(sys.argv)
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/django/core/management/__init__.py"", line 367, in execute_from_command_line
    utility.execute()
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/django/core/management/__init__.py"", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/django/core/management/base.py"", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/django/core/management/base.py"", line 345, in execute
    output = self.handle(*args, **options)
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/mezzanine/core/management/commands/createdb.py"", line 61, in handle
    func()
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/mezzanine/core/management/commands/createdb.py"", line 151, in translation_fields
    verbosity=self.verbosity, interactive=False)
  File ""/home/ge0/envs/bakadeshi/lib/python3.5/site-packages/django/core/management/base.py"", line 314, in execute
    if options['no_color']:
KeyError: 'no_color'
}}}

Python version: 3.5.2

Installed packages:

{{{
Mezzanine==4.2.2
django-modeltranslation
}}}

"	Uncategorized	closed	Migrations	1.10	Normal	invalid			Unreviewed	0	0	0	0	1	0
