| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This option specifies the level that check command exits with a
non-zero status. Default is ``ERROR``.
|
|
|
|
| |
timeline.
|
| |
|
|
|
|
| |
docstrings.
|
|
|
|
|
| |
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah
for their reviews.
|
|
|
|
| |
error to a system check.
|
| |
|
|
|
|
| |
ALLOWED_HOSTS.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Model._meta
|
| |
|
| |
|
|
|
|
| |
often yielded false positives.
|
|
|
|
|
| |
__init__ isn't allowed to return anything other than None and it isn't
common practice to include a return statement.
|
|
|
|
| |
as a function
|
|
|
|
| |
which often yielded false positives.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
|
|
|
| |
--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.
|
| |
|
|
|
|
|
|
|
|
| |
global settings defaults.
Also added a compatibility check for changed middleware defaults.
Forwardport of d94de802d3 from stable/1.7.x
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Thanks Elvard for the patch.
|
|
|
|
|
|
| |
for check framework.
Thanks Elvard for the patch.
|
|
|
|
| |
signal and compatibility checks.
|
|
|
|
| |
documentation.
|
|
|
|
|
|
| |
check messages.
Thanks to Thomas Güttler for the suggestion.
|
| |
|
| |
|
|
|
|
|
|
| |
system-level check.
This reverts commit 0ac13eccebb3d879f79b31585b1e81f655067179.
|
|
|
|
| |
use the new checks framework to check for unapplied migrations. Don't check for migrations if the DATABASES setting is empty.
|
|
|
|
|
| |
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
|
|
| |
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Thanks to Carl and Shai for the discussion.
|
|
|
|
|
|
|
| |
BooleanField does not have a default value
Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.
|
|
This is to allow future compatibility with work that is ongoing in the 2013 GSoC.
|