Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/checks
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25500 -- Added --fail-level option to check command.Jon Dufresne2015-10-051-2/+2
| | | | | This option specifies the level that check command exits with a non-zero status. Default is ``ERROR``.
* Removed deprecated TEMPLATE_* settings per deprecation ↵Tim Graham2015-09-241-7/+4
| | | | timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-241-1/+0
|
* Refs #23813 -- Moved URLconfs into module and tidied ↵Alasdair Nicol2015-09-221-5/+5
| | | | docstrings.
* Fixed #23813 -- Added checks for common URL pattern errorsAlasdair Nicol2015-09-213-0/+90
| | | | | Thanks jwa and lamby for the suggestions, and timgraham and jarshwah for their reviews.
* Fixed #25034 -- Converted caches ImproperlyConfigured ↵Tom Christie2015-09-183-0/+20
| | | | error to a system check.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-2/+2
|
* Fixed #24966 -- Added deployment system check for empty ↵rroskam2015-07-151-0/+10
| | | | ALLOWED_HOSTS.
* Fixed #25079 -- Added warning if both TEMPLATES and ↵Daniel Roseman2015-07-133-0/+32
| | | | | | | | | | | | TEMPLATE_* settings are defined. Django ignores the value of the TEMPLATE_* settings if TEMPLATES is also set, which is confusing for users following older tutorials. This change adds a system check that warns if any of the TEMPLATE_* settings have changed from their defaults but the TEMPLATES dict is also non-empty. Removed the TEMPLATE_DIRS from the test settings file; this was marked for removal in 1.10 but no tests fail if it is removed now.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-9/+10
|
* Fixed #24922 -- Added system check for templates settingSergei Maertens2015-06-073-0/+25
| | | | | | If `'loaders'` is present in the `TEMPLATES` options together with `APP_DIRS` set to `True`, the template engine raises an exception. This conflict is now detected by the system check templates.E001.
* Fixed #24693 -- Added label and label_lower property to ↵Luis Del Giudice2015-05-021-3/+1
| | | | Model._meta
* Removed Django 1.7 MIDDLEWARE_CLASSES upgrade check.Tim Graham2015-02-103-37/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-065-8/+5
|
* Fixed #23765 -- Removed BooleanField default check which ↵Tim Graham2014-11-132-42/+0
| | | | often yielded false positives.
* Removed return from __init__.Aymeric Augustin2014-11-121-5/+5
| | | | | __init__ isn't allowed to return anything other than None and it isn't common practice to include a return statement.
* Fixed #23750 -- Allowed core.checks.register to be used ↵averybigant2014-11-111-5/+12
| | | | as a function
* Fixed #23469 -- Removed test runner compatibility check ↵Tim Graham2014-10-171-75/+0
| | | | which often yielded false positives.
* Fixed #23615 -- Validate that a Model instance's "check" ↵Rigel Di Scala2014-10-161-9/+24
| | | | | | | | | | | | attribute is a method. The "check" name is a reserved word used by Django's check framework, and cannot be redefined as something else other than a method, or the check framework will raise an error. This change amends the django.core.checks.model_check.check_all_models() function, so that it verifies that a model instance's attribute "check" is actually a method. This new check is assigned the id "models.E020".
* Fixed #17101 -- Integrated django-secure and added check ↵Tim Graham2014-09-126-10/+364
| | | | | | | | | --deploy option Thanks Carl Meyer for django-secure and for reviewing. Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and Jorge Carleitao for reviews.
* Add missing spaces to implicitly joined stringsIan Foote2014-06-291-2/+2
|
* Fixed #22477 -- Removed contrib middleware from the ↵mlavin2014-06-132-0/+37
| | | | | | | | global settings defaults. Also added a compatibility check for changed middleware defaults. Forwardport of d94de802d3 from stable/1.7.x
* Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-151-1/+1
|
* Fixed #22454 - Changed compatibility warning hintMoayad Mardini2014-04-181-1/+1
| | | | | | The warning hint of `_check_test_runner` of 1.6 compatibility had a link to a general release note. The link should be edited to refer the relevant "Backwards incompatible changes in 1.6" section that documents the cause and the possible solutions and workarounds of the warning.
* Fixed #22194 -- Added --list-tags option to check command.Tim Graham2014-04-101-2/+4
| | | | Thanks Elvard for the patch.
* Fixed #22195 -- Used constants to define built-in tags ↵Tim Graham2014-04-104-7/+17
| | | | | | for check framework. Thanks Elvard for the patch.
* Corrected expected test output to allow for cleanups in ↵Russell Keith-Magee2014-03-031-2/+2
| | | | signal and compatibility checks.
* Added backwards compatibliity checks to reference ↵Russell Keith-Magee2014-03-031-1/+1
| | | | documentation.
* Fixed #22193 -- Made hint a truly optional arugment on ↵Russell Keith-Magee2014-03-031-1/+1
| | | | | | check messages. Thanks to Thomas Güttler for the suggestion.
* Edited model and field checks for grammar and consistency.Russell Keith-Magee2014-03-031-2/+2
|
* Fixed two typos.Rodolfo Carvalho2014-02-151-1/+1
|
* Reverting unapplied migrations check away from being a ↵Andrew Godwin2014-02-122-32/+0
| | | | | | system-level check. This reverts commit 0ac13eccebb3d879f79b31585b1e81f655067179.
* Remove check_migrations from the runserver command and ↵mlavin2014-02-082-0/+32
| | | | use the new checks framework to check for unapplied migrations. Don't check for migrations if the DATABASES setting is empty.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-1/+2
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-206-82/+308
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-1/+2
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+2
|
* Refs #21197 -- Clarified upgrade check message.Russell Keith-Magee2013-10-081-4/+2
| | | | Thanks to Carl and Shai for the discussion.
* Fixed #20895 -- Made check management command warn if a ↵Alasdair Nicol2013-08-161-1/+28
| | | | | | | BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
* Fixed #20653 -- Renamed checksetup management command.Russell Keith-Magee2013-06-254-0/+76
This is to allow future compatibility with work that is ongoing in the 2013 GSoC.