#26197: DEFAULT_DB_ALIAS in settings
-------------------------------------+-------------------------------------
Reporter: marcinn | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by marcinn):
Oh, I forgot one thing. When "default" is not defined, I'm getting a
TECHNICAL problem:
{{{
raise ImproperlyConfigured("You must define a '%s' database" %
DEFAULT_DB_ALIAS)
django.core.exceptions.ImproperlyConfigured: You must define a 'default'
database
}}}
Please note that I'm not using any kind of *DEFAULT* database, just
explicite database A, B, C and so on.
Removal of "default" connection is not possible (because it's a part of
Django` db layer design), so I'm asking to rename "default" to "A" or "B"
or "C", etc. As you see I have a technical reason - Django won't start
without "default" connection defined.
--
Ticket URL: <https://code.djangoproject.com/ticket/26197#comment:8>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.028198085ffddeffa5bf406adc0ade40%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.