Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rewrote some references to "master". | Adam Johnson | 2022-03-08 | 1 | -5/+5 |
| | | | | Following d9a266d657f66b8c4fa068408002a4e3709ee669. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -1/+4 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 8 | -128/+151 |
| | |||||
* | Refs #31180 -- Removed default_app_config application configuration variable ↵ | Mariusz Felisiak | 2021-09-20 | 9 | -145/+2 |
| | | | | per deprecation timeline. | ||||
* | Fixed #32285 -- Raised ImproperlyConfigured when AppConfig.label is not a ↵ | Hasan Ramezani | 2020-12-22 | 1 | -0/+8 |
| | | | | valid Python identifier. | ||||
* | Fixed #31007 -- Allowed specifying type of auto-created primary keys. | Tom Forbes | 2020-12-15 | 2 | -2/+31 |
| | | | | | This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField. | ||||
* | Refs #31180 -- Fixed unreachable assertions in apps tests. | Mariusz Felisiak | 2020-08-11 | 1 | -4/+14 |
| | |||||
* | Fixed #31870 -- Fixed crash when populating app registry with empty or ↵ | Iuri de Silvio | 2020-08-10 | 4 | -0/+66 |
| | | | | | without apps module. Regression in 3f2821af6bc48fa8e7970c1ce27bc54c3172545e. | ||||
* | Fixed #31180 -- Configured applications automatically. | Aymeric Augustin | 2020-07-21 | 18 | -17/+146 |
| | |||||
* | Fixed #27685 -- Added watchman support to the autoreloader. | Tom Forbes | 2019-01-13 | 1 | -0/+3 |
| | | | Removed support for pyinotify (refs #9722). | ||||
* | Fixed #29768 -- Improved error message when an AppConfig has a typo in ↵ | Marten Kenbeek | 2018-09-26 | 1 | -4/+12 |
| | | | | INSTALLED_APPS. | ||||
* | Added test for Apps.get_models() when models_ready=False. | Mads Jensen | 2018-01-30 | 1 | -6/+19 |
| | |||||
* | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | 2017-07-29 | 1 | -2/+4 |
| | |||||
* | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | 2017-06-01 | 1 | -4/+4 |
| | |||||
* | Replaced type-specific assertions with assertEqual(). | Tim Graham | 2017-03-17 | 1 | -8/+6 |
| | | | Python docs say, "it's usually not necessary to invoke these methods directly." | ||||
* | Tested AppConfig.__repr__(). | Anton Samarchyan | 2017-01-27 | 1 | -0/+4 |
| | |||||
* | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | 2017-01-20 | 2 | -6/+4 |
| | | | These functions do nothing on Python 3. | ||||
* | Refs #23919 -- Removed str() conversion of type and method __name__. | Simon Charette | 2017-01-19 | 1 | -8/+8 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 2 | -2/+2 |
| | |||||
* | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | 2017-01-18 | 1 | -3/+0 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 3 | -6/+0 |
| | |||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -3/+3 |
| | |||||
* | Fixed #26616 -- Improved error message when AppConfig.name is invalid. | inondle | 2016-06-02 | 1 | -1/+2 |
| | |||||
* | Fixed E128 flake8 warnings in tests/. | Tim Graham | 2016-04-08 | 1 | -2/+1 |
| | |||||
* | Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵ | Hasan | 2016-01-29 | 1 | -3/+3 |
| | | | | appropriate. | ||||
* | Added missing period to "etc.". | pp | 2016-01-11 | 1 | -1/+1 |
| | |||||
* | Fixed #25746 -- Isolated inlined test models registration. | Simon Charette | 2016-01-06 | 1 | -2/+3 |
| | | | | Thanks to Tim for the review. | ||||
* | Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite. | Simon Charette | 2015-11-14 | 1 | -8/+6 |
| | |||||
* | Refs #22789 -- Removed contrib.webdesign per deprecation timeline. | Tim Graham | 2015-09-23 | 1 | -2/+2 |
| | |||||
* | Fixed #25246 -- Guarded against duplicate paths in AppConfig. | Caio Ariede | 2015-09-02 | 1 | -0/+8 |
| | |||||
* | Fixed #25331 -- Removed trailing blank lines in docstrings. | Maxime Lorant | 2015-08-31 | 1 | -1/+0 |
| | |||||
* | Refs #23621 -- Fixed warning message when reloading models. | Marten Kenbeek | 2015-06-30 | 1 | -1/+1 |
| | |||||
* | Removed support for Python 3.3. | Tim Graham | 2015-06-18 | 1 | -4/+1 |
| | |||||
* | Fixed #24776 -- Improved apps.get_app_config() error message on ↵ | Peter Inglesby | 2015-05-22 | 1 | -0/+4 |
| | | | | fully-qualified package names. | ||||
* | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | 2015-05-20 | 1 | -4/+4 |
| | |||||
* | Fixed #24215 -- Refactored lazy model operations | Alex Hill | 2015-03-25 | 1 | -0/+38 |
| | | | | | | | This adds a new method, Apps.lazy_model_operation(), and a helper function, lazy_related_operation(), which together supersede add_lazy_relation() and make lazy model operations the responsibility of the App registry. This system no longer uses the class_prepared signal. | ||||
* | Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵ | Tim Graham | 2015-02-17 | 1 | -1/+1 |
| | | | | contains non-ASCII characters. | ||||
* | Added check_apps_ready() to Apps.get_containing_app_config() | Tim Graham | 2015-02-08 | 1 | -1/+13 |
| | |||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 2 | -6/+4 |
| | |||||
* | Refactored tests that rely on an ImportError for Python 3.5 compatibility | Tim Graham | 2015-02-03 | 2 | -2/+1 |
| | | | | | | | | A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559 | ||||
* | Fixed flake8 warning. | Tim Graham | 2014-10-22 | 1 | -0/+1 |
| | |||||
* | Improved warning message when reloading models. Refs #23621. | Loic Bistuer | 2014-10-23 | 1 | -1/+4 |
| | | | | Thanks dfunckt and Tim Graham. | ||||
* | Fixed #23621 -- Warn for duplicate models when a module is reloaded. | Loic Bistuer | 2014-10-23 | 1 | -0/+36 |
| | | | | | | | | | Previously a RuntimeError was raised every time two models clashed in the app registry. This prevented reloading a module in a REPL; while it's not recommended to do so, we decided not to forbid this use-case by turning the error into a warning. Thanks @dfunckt and Sergey Pashinin for the initial patches. | ||||
* | Fixed #22920 -- Avoid masking some exceptions. | Aymeric Augustin | 2014-09-08 | 2 | -0/+9 |
| | | | | | If loading an application trigger an ImportError, the details of that error were lost in some cases. Thanks Ben Davis for the report. | ||||
* | Removed unnecessary absolute_imports. | Tim Graham | 2014-08-25 | 1 | -1/+1 |
| | |||||
* | Fixed #21874 -- Require Django applications to have a filesystem path. | Carl Meyer | 2014-01-27 | 1 | -1/+66 |
| | | | | | | | | | | | | | | Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion. | ||||
* | Fixed some missing/extraneous new line warnings. | Simon Charette | 2014-01-26 | 2 | -1/+1 |
| | |||||
* | Fixed #21702 -- get_model('app_label.ModelName'). | Aymeric Augustin | 2014-01-26 | 1 | -2/+27 |
| | | | | Also added tests for get_model. | ||||
* | Moved sys.path-extending decorator to django.test.utils and used throughout ↵ | Carl Meyer | 2014-01-25 | 1 | -14/+4 |
| | | | | | | test suite. Thanks Aymeric for the suggestion. | ||||
* | Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵ | Carl Meyer | 2014-01-25 | 3 | -0/+75 |
| | | | | | | | | | | apps. Also document the conditions under which a namespace package may or may not be a Django app, and raise a clearer error message in those cases where it may not be. Thanks Aymeric for review and consultation. |