#27366: KeyError: 'no_color' in base.py, l. 314 -------------------------------+-------------------- Reporter: Geoffrey R. | Owner: nobody Type: Uncategorized | Status: new Component: Migrations | Version: 1.10 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- 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 }}} -- Ticket URL: <https://code.djangoproject.com/ticket/27366> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/046.d4d20423a08a891f353bd71a4457fe97%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.