Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added backward compatibility test for ConnectionHandler.databases property. | Nick Pope | 2022-05-13 | 1 | -0/+3 |
| | | | | | | The ConnectionHandler.databases property is no longer used within Django, but it is maintained for backward compatibility with 3rd party packages that have used this private API in the past. | ||||
* | Made closing in connection handlers more DRY. | Nick Pope | 2022-05-12 | 1 | -8/+0 |
| | |||||
* | Moved ensure_defaults() and prepare_test_settings() logic to ↵ | Florian Apolloner | 2022-03-17 | 1 | -44/+25 |
| | | | | ConnectionHandler.configure_settings(). | ||||
* | Removed usage of django.db.utils.ConnectionHandler.databases. | Florian Apolloner | 2022-03-17 | 1 | -3/+3 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -41/+46 |
| | |||||
* | Fixed #30398 -- Added CONN_HEALTH_CHECKS database setting. | Przemysław Suliga | 2021-12-01 | 1 | -0/+1 |
| | | | | | | | The CONN_HEALTH_CHECKS setting can be used to enable database connection health checks for Django's persistent DB connections. Thanks Florian Apolloner for reviews. | ||||
* | Refs #25175 -- Removed postgresql_psycopg2 in django.db.utils.load_backend(). | Mariusz Felisiak | 2021-01-06 | 1 | -1/+1 |
| | | | Follow up to 944469939b9eb93fda0924f78faba5c0ffae2dff. | ||||
* | Simplified django.db.utils.load_backend(). | William Schwartz | 2021-01-04 | 1 | -3/+2 |
| | | | | | | Previously load_backend() performed search by computing the (sole) entry of django.db.backends.__path__ manually from django.db.utils.__file__. Now django.db.backends.__path__ is used directly. | ||||
* | Fixed #32233 -- Cleaned-up duplicate connection functionality. | Florian Apolloner | 2020-12-08 | 1 | -54/+29 |
| | |||||
* | Fixed #32197 -- Improved error message when loading a database backend fails. | Hasan Ramezani | 2020-11-16 | 1 | -2/+4 |
| | |||||
* | Fixed #25388 -- Added an option to allow disabling of migrations during test ↵ | Jon Dufresne | 2019-11-20 | 1 | -2/+9 |
| | | | | database creation. | ||||
* | Fixed #30451 -- Added ASGI handler and coroutine-safety. | Andrew Godwin | 2019-06-20 | 1 | -2/+8 |
| | | | | | This adds an ASGI handler, asgi.py file for the default project layout, a few async utilities and adds async-safety to many parts of Django. | ||||
* | Fixed #30071 -- Fixed error message when a 'default' database isn't provided. | Benjy Weinberger | 2019-01-09 | 1 | -3/+2 |
| | |||||
* | Ref #23919 -- Replaced some os.path usage with pathlib.Path. | Tom | 2018-04-19 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Used "raise from" instead of __cause__ in reraising ↵ | Mariusz Felisiak | 2017-04-25 | 1 | -2/+1 |
| | | | | | backend-specific database exceptions. Thanks Tim Graham for the review. | ||||
* | Refs #27656 -- Updated django.db docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-28 | 1 | -7/+5 |
| | |||||
* | Tidied djang.db.utils.load_backend(). | Tim Graham | 2017-01-24 | 1 | -15/+11 |
| | | | | Removed an unneeded EnvironmentError catching and used "raise from exc" syntax. | ||||
* | Refs #23919 -- Removed __traceback__ setting needed for Python 2. | Tim Graham | 2017-01-24 | 1 | -2/+0 |
| | | | Partially reverted refs #25761 and refs #16245. | ||||
* | Refs #23919 -- Replaced six.reraise by raise | Claude Paroz | 2017-01-22 | 1 | -2/+1 |
| | |||||
* | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | 2017-01-20 | 1 | -3/+2 |
| | | | These functions do nothing on Python 3. | ||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -3/+3 |
| | |||||
* | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | 2017-01-18 | 1 | -1/+1 |
| | | | | Thanks Tim Graham and Simon Charette for the reviews. | ||||
* | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | 2017-01-18 | 1 | -1/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions. | Raphaël Hertzog | 2015-12-03 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | When Django reraises an exception, it sets the __cause__ attribute even in Python 2, mimicking Python's 3 behavior for "raise Foo from Bar". However, Python 3 also ensures that all exceptions have a __traceback__ attribute and thus the "traceback2" Python 2 module (backport of Python 3's "traceback" module) relies on the fact that whenever you have a __cause__ attribute, the recorded exception also has a __traceback__ attribute. This is breaking testtools which is using traceback2 (see https://github.com/testing-cabal/testtools/issues/162). This commit fixes this inconsistency by ensuring that Django sets the __traceback__ attribute on any exception stored in a __cause__ attribute of a reraised exception. | ||||
* | Refs #24351 -- Removed support for the old allow_migrate() signature per ↵ | Tim Graham | 2015-09-23 | 1 | -23/+1 |
| | | | | deprecation timeline. | ||||
* | Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql. | Caio Ariede | 2015-08-07 | 1 | -2/+10 |
| | |||||
* | Fixed db.utils.load_backend() on non-ASCII paths. | Tim Graham | 2015-07-17 | 1 | -2/+2 |
| | |||||
* | Filtered out 'base' from database backend choices error message. | Tim Graham | 2015-07-15 | 1 | -1/+1 |
| | |||||
* | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | 2015-06-24 | 1 | -3/+3 |
| | | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | ||||
* | Fixed #24979 -- Removed usage of inspect.getargspec(). | Tim Graham | 2015-06-15 | 1 | -2/+10 |
| | |||||
* | Fixed flake8 warnings on Python 3. | Tim Graham | 2015-06-15 | 1 | -1/+1 |
| | |||||
* | Fixed #23820 -- Supported per-database time zone. | Aymeric Augustin | 2015-05-17 | 1 | -1/+1 |
| | | | | | | | | | The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error. | ||||
* | Fixed #24394 -- Allowed running tests with empty default dictionary. | Andrei Kulakov | 2015-03-25 | 1 | -0/+3 |
| | |||||
* | Fixed #24351, #24346 -- Changed the signature of allow_migrate(). | Loic Bistuer | 2015-02-20 | 1 | -6/+29 |
| | | | | | | | | | | | | | | The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -4/+3 |
| | |||||
* | Removed support for old-style test database settings per deprecation timeline. | Tim Graham | 2015-01-17 | 1 | -39/+0 |
| | |||||
* | Removed fallback suport for allow_syncdb() in database routers per ↵ | Tim Graham | 2015-01-17 | 1 | -8/+1 |
| | | | | deprecation timeline. | ||||
* | Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router. | Loic Bistuer | 2015-01-10 | 1 | -2/+2 |
| | | | | Thanks Markus Holtermann and Tim Graham for the review. | ||||
* | Fixed #21255 -- Closed connections after management command ran | Claude Paroz | 2014-12-29 | 1 | -0/+8 |
| | | | | | Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews. | ||||
* | Restored the 'TEST_' prefix in the warning about deprecated test database ↵ | Shai Berger | 2014-12-01 | 1 | -1/+1 |
| | | | | settings | ||||
* | Fixed #21755 -- Added ForeignKey support to REQUIRED_FIELDS. | Anubhav Joshi | 2014-07-03 | 1 | -4/+4 |
| | | | | | | | This allows specifying ForeignKeys in REQUIRED_FIELDS when using a custom User model. Thanks cjerdonek and bmispelon for suggestion and timgraham for review. | ||||
* | Silenced deprecation warnings for refs #22811 and fixed build. | Tim Graham | 2014-06-12 | 1 | -1/+1 |
| | |||||
* | Fixed #22811 -- Allowed setting both the old and new TEST database settings. | Tim Graham | 2014-06-12 | 1 | -7/+19 |
| | | | | An ImproperlyConfigured exception will be raised they mismatch. | ||||
* | Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵ | Anubhav Joshi | 2014-06-11 | 1 | -0/+1 |
| | | | | | | | from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch. | ||||
* | Removed deprecated TRANSACTIONS_MANAGED setting. | Aymeric Augustin | 2014-03-21 | 1 | -6/+1 |
| | |||||
* | Fixed the last fix for database test settings to work with Python3. | Shai Berger | 2014-03-09 | 1 | -1/+1 |
| | |||||
* | Fixed test breakage following test-settings enhancements | Shai Berger | 2014-03-09 | 1 | -0/+3 |
| | |||||
* | Reorganized the database test settings | Shai Berger | 2014-03-09 | 1 | -2/+36 |
| | | | | | | | | | | Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review. | ||||
* | Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings | Claude Paroz | 2014-03-08 | 1 | -2/+3 |
| | | | | | Thanks Anssi Kääriäinen for the idea and Simon Charette for the review. | ||||
* | Silence deprecation warnings. | Marc Tamlyn | 2014-02-09 | 1 | -2/+2 |
| | | | | | | | Also they should only be raised if allow_syncdb does exist, not just if allow_migrate does not. Refs comments on 250841017c6c456806cadd214b4e130aa998233d |