| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Environment keys/values need to use native strings on some
plateforms. Thanks anubhav joshi for detecting the issue and
helping shaping the patch.
|
|
|
|
| |
warnings off
|
| |
|
|
|
|
| |
Thanks Piotr Kasprzyk for help with the patch.
|
|
|
|
|
| |
And without causing a circular import. Thanks Akis Kesoglou for
the report.
|
|
|
|
| |
checks in output.
|
|
|
|
|
| |
Thanks Russell for the report, Marc for the initial patch, Carl for the
final review, and everyone who contributed to the design discussion.
|
|
|
|
|
|
| |
These warnings all emerged as the result of the introduction of the checks framework.
Thanks to Anssi Kääriäinen for the report.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This (nearly) completes the work to isolate all the test modules from
each other. This is now more important as importing models from another
module will case PendingDeprecationWarnings if those modules are not in
INSTALLED_APPS. The only remaining obvious dependencies are:
- d.c.auth depends on d.c.admin (because of the is_admin flag to some
views), but this is not so important and d.c.admin is in
always_installed_apps
- test_client_regress depends on test_client. Eventually these should
become a single module, as the split serves no useful purpose.
|
|
|
|
| |
commands.
|
|
|
|
|
|
|
| |
The last component of the dotted path to the application module is
consistently referenced as the application "label". For instance it's
AppConfig.label. appname could be confused with AppConfig.name, which is
the full dotted path.
|
| |
|
|
|
|
|
|
|
|
|
| |
Adjusted several tests that used it to add apps to the app cache and
then attempted to remove them by manipulating attributes directly.
Also renamed invalid_models to invalid_models_tests to avoid clashing
application labels between the outer and the inner invalid_models
applications.
|
|
|
|
|
| |
It wasn't used anywhere and couldn't be implemented any more since
non-installed apps no longer have a configuration.
|
|
|
|
|
|
|
| |
Added comments in the three empty models.py files that are still needed.
Adjusted the test runner to add applications corresponding to test
labels to INSTALLED_APPS even when they don't have a models module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactored get_app() to rely on that method.
get_app() starts by calling _populate(), which goes through
INSTALLED_APPS and, for each app, imports the app module and attempts to
import the models module. At this point, no further imports are
necessary to return the models module for a given app. Therefore, the
implementation of get_app() can be simplified and the safeguards for
race conditions can be removed.
Besides, the emptyOK parameter isn't used anywhere in Django. It was
introduced in d6c95e93 but not actually used nor documented, and it has
just been carried around since then. Since it's an obscure private API,
it's acceptable to stop supporting it without a deprecation path. This
branch aims at providing first-class support for applications without a
models module eventually.
For backwards-compatibility, get_app() still raises ImproperlyConfigured
when an app isn't found, even though LookupError is technically more
correct. I haven't gone as far as to preserve the exact error messages.
I've adjusted a few tests instead.
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Change strategy used to examine instrumented output to acommodate the
fact that on Windows, where the path separator is '\', repr() of Python
modules has changed in Python 3 to use escaped backslashes in the FS
path section (e.g.
'C:\\python3x\\Lib\\site-packages\\django\\contrib\\auth\\models.py')
without having to special-case based on platform.
|
|
|
|
|
|
|
|
|
| |
management commands
When listing available management commands, only core commands are
listed if settings have any error. This commit adds a note in this
case so errors are not totally silently skipped.
Thanks Peter Davis for the report.
|
| |
|
| |
|
|
|
|
|
|
| |
fetch_command
Thanks wildfire for the report.
|
|
|
|
|
|
| |
non-ascii
Thanks kontakt@eikefoken.de for the report.
|
|
|
|
|
|
|
| |
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
|
|
|
|
| |
Windows.
Refs #18091.
|
| |
|
|
|
|
| |
refs #19877.
|
|
|
|
| |
#19877. Thanks Loic.
|
|
|
|
| |
`BaseCommand` to avoid using output styles.
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
|
| |
As some settings are copied from current user settings, we cannot
be sure the characters are pure ascii.
|
|
|
|
| |
Refs #20680.
|
| |
|
|
|
|
| |
Fixed #20483.
|
|
|
|
|
|
| |
ALLOWED_HOSTS is empty.
Refs #19875.
|
|
|
|
| |
Thanks weipin for the report and Baptiste Mispelon for the patch.
|
|
|
|
| |
error
|
|
|
|
|
|
|
|
|
|
|
| |
test runner.
Thanks to Preston Timmons for the bulk of the work on the patch, especially
updating Django's own test suite to comply with the requirements of the new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the
patch and the discovery runner.
Refs #11077, #17032, and #18670.
|
|
|
|
| |
a5becad9094e5c5403b692b9a7b3a6ffaabf64a3.
|
| |
|
|
|
|
|
|
|
|
| |
exceptions
By default, show tracebacks for management command errors when the
exception is not a CommandError.
Thanks Jacob Radford for the report.
|
|
|
|
| |
/private/var/folders mismatch
|
|
|
|
|
|
| |
If Django was symlinked into site-packages the previous approach to discover
the tests subdirectory would fail. The revised version now always points to
the location of the source and not the import path.
|
| |
|
|
|
|
| |
modeltests/regressiontests.
|
|
|