Re: python manage.py inspectdb > models.py crashing with KeyError: options['no-color']

19 views
Skip to first unread message

Mikhailo Keda

unread,
Jul 24, 2018, 9:27:09 AM7/24/18
to django...@googlegroups.com
what version of django are you using?

On Tue, Jul 24, 2018 at 11:05 AM, dean raemaekers <dp.rae...@gmail.com> wrote:
Hello,

I am trying to use inspectdb to generate models for a legacy database. I get the following error:

$ python custom_inspectdb.py

Traceback (most recent call last):
  File "custom_inspectdb.py", line 8, in <module>
    Command().execute(table_name_filter=lambda table_name: table_name in tables, database='default')
  File "/venv/leg370/lib/python3.7/site-packages/django/core/management/base.py", line 314, in execute
    if options['no_color']:
KeyError: 'no_color'


--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/38702e56-66d6-439b-97de-c47ef36b37e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages