﻿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
16989	Problem with DEFAULT_DB_ALIAS in settings	sergeybe@…	nobody	"My settings.py has lines:

{{{
...
DEFAULT_DB_ALIAS = 'production'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', 
        'NAME': 'xxx.sqlite',              
        'USER': '',                      
        'PASSWORD': '',                  
        'HOST': '',                      
        'PORT': '',                      
    },
    'production':  {
        'ENGINE': 'django.db.backends.mysql', 
        'NAME': 'XXX',                      
        'USER': 'XXX',                      
        'PASSWORD': 'XXX',                  
        'HOST': 'localhost',                
        'PORT': '3306',                     
    },
}
...
}}}

When I run command ""python manage.py syncdb"" and Django creates sqlite database instead of MySQL database. It uses ""default"" alias instead of ""production"" alias. But next command works correctly ""python manage.py syncdb --database=production"".

I guess this is bug.
"	Bug	closed	Core (Other)	1.3	Normal	invalid	DEFAULT_DB_ALIAS settings		Unreviewed	0	0	0	0	0	0
