It would be nice if the database already had `TEST_DATABASE_PREFIX` , we
wouldn't add it again.
e.g. -- not do `test_<db_name>` to `test_test_<db_name>`
https://github.com/django/django/pull/7655
--
Ticket URL: <https://code.djangoproject.com/ticket/27571>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Tim Graham):
Isn't this backwards-incompatible? Any project that prefixes its database
with `test_` will now have it clobbered by the test database. If you want
a specific test database name, then you should use
`DATABASES['TEST']['NAME']`
([https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-
TEST_NAME docs]).
--
Ticket URL: <https://code.djangoproject.com/ticket/27571#comment:1>
Comment (by Alex Alvarez):
Isn't this backwards-incompatible? yeah it is.
As I mentioned the behavior is documented, I was just curious if anyone
else thought like me and found it annoying that said database name changes
even when you follow the naming convention.
For me, I'm operating in mixed environment where not all db connections
are instantiated from django and it caused a lot of headache before
realizing the db name was being renamed just because I changed from sql-
lite to postgres
--
Ticket URL: <https://code.djangoproject.com/ticket/27571#comment:2>
* status: new => closed
* resolution: => wontfix
Comment:
I don't see a strong rationale for changing the behavior.
--
Ticket URL: <https://code.djangoproject.com/ticket/27571#comment:3>