#16989: Problem with DEFAULT_DB_ALIAS in settings
------------------------------+---------------------------------------
     Reporter:  sergeybe@…    |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  Core (Other)  |    Version:  1.3
     Severity:  Normal        |   Keywords:  DEFAULT_DB_ALIAS settings
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+---------------------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16989>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to