#9714: Bug in manage.py --settings=mysettings
---------------------------+------------------------------------------------
Reporter: fero | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.0
Keywords: management | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
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
--
Ticket URL: <http://code.djangoproject.com/ticket/9714>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---