﻿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
9714	Bug in manage.py --settings=mysettings	fero	nobody	"Hello I use Django-1.0
and I hit the following bug:

I have a settings.py with my default settings
and a mysettings.py for developing purposes in which I simply override the DATABASE_USER variable

If I do:
# python manage.py dbshell --settings=mysettings

I get the error:
{{{
Traceback (most recent call last):
  File ""manage.py"", line 11, in <module>
    execute_manager(settings)
  File ""/usr/local/sanet/django/core/management/__init__.py"", line 340, in execute_manager
    utility.execute()
  File ""/usr/local/sanet/django/core/management/__init__.py"", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/usr/local/sanet/django/core/management/base.py"", line 77, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/usr/local/sanet/django/core/management/base.py"", line 96, in execute
    output = self.handle(*args, **options)
  File ""/usr/local/sanet/django/core/management/base.py"", line 178, in handle
    return self.handle_noargs(**options)
  File ""/usr/local/sanet/django/core/management/commands/dbshell.py"", line 10, in handle_noargs
    connection.client.runshell()
  File ""/usr/local/sanet/django/db/backends/dummy/base.py"", line 15, in complain
    raise ImproperlyConfigured, ""You haven't set the DATABASE_ENGINE setting yet.""
django.core.exceptions.ImproperlyConfigured: You haven't set the DATABASE_ENGINE setting yet.
}}}

I don't get the error if I do:

# DJANGO_SETTINGS_MODULE=mysettings python manage.py dbshell

Thank you for your work


"		closed	Uncategorized	1.0		invalid	management		Unreviewed	0	0	0	0	0	0
