| Age | Commit message (Collapse) | Author |
|
The RegexURLResolver.resolve() method no longer returns a tuple.
It has returned a ResolverMatch object since commit e0fb90b2.
Backport of c07f9fef398a21a76d350e8b02b396b3e580b751 from master
|
|
Backport of 8615e415861ea93afb5a84365895bd7b9af7be6f from master
|
|
Backport of d731cf5caf043189fda3708cc0dace5d8f94db6b from master
|
|
commands.
Backport of acb833081dd3abca3bc62753103690f23fb3f0ec from master
|
|
With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.
Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.
At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.
Backport of fe6ddb837d from master
|
|
migrate command.
Ensured squashed migrations are recorded as applied when the
migrate command is run and all of the original migrations
have been previously applied.
Backport of 69db1c745506bf63026def25d6854755179feaa8 from master
|
|
Backport of 1a76257b1b385ac8afd67bd36d061f508613e4d2 from master
|
|
|
|
Backport of 561c018d88203826cb9fd370e03a28e829871b75 from master
|
|
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.
Backport of 24620d71f2116da31abe6c9391f7bc807ac23c0b from master
|
|
Backport of 6355a6d4f5 and 2e05ef4e18 from master.
|
|
Thanks João Silva for reporting the problem and Tim Graham for finding the
problematic RE and for review.
This is a security fix; disclosure to follow shortly.
|
|
This is a security fix; disclosure to follow shortly.
Thanks to Sjoerd Job Postmus for the report and draft patch.
|
|
Backport of bc98bc56a52860688ea0ae2ec7b9e59ddb72a811 from master
|
|
|
|
better backwards compatibility.
Using `BaseCommand.options_list` makes Django use the legacy optparse
parser, which does not set the verbosity attribute correctly. Now the
verbosity argument is always cast to int. Regression in 8568638 (#19973).
Initial report and patch from blueyed.
Backport of a0047c6242fd48068eb444e0a58f7a5d2bc1bcd3 from master
|
|
Backport of 57202a112a966593857725071ecd652a87c157fb from master
|
|
Backport of 503bbc49d894586934b520bafe116b2c40bb45ec from master
|
|
Thanks Domas Lapinskas for the report and Tim Graham for the
review.
Backport of 426b63ba04 from master.
|
|
Backport of 2c39f282b8389f47fee4b24e785a58567c6c3629 from master
|
|
Fixes a regression introduced in 53c2cf1e.
Backport of 3f4e77840 from master.
|
|
gettext version.
Backport of 53c2cf1e7b3f1c9a7794fcc5c4669145f351b2fa from master
|
|
merging.
Also added display of migration to stdout when verbosity=3.
Backport of 8758a63ddbbf7a2626bd84d50cfe83b477e8de0a from master
|
|
Refs #24389.
Backport of 556a748 from master
|
|
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.
Conflicts:
django/db/utils.py
Backport of bed504d70bede3431a213203c13a33905d6dbf77 from master
|
|
Backport of e467919c6315be87abec72383ec1a81e2665ebec from master
|
|
a non-ASCII path.
Backport of 81a94cc616ab80decaa495cfa1c0c623527fc0e7 from master
|
|
Backport of 4a0aeac1b5cfb7b6229a01119a596afb38d8a2a0 from master
|
|
foreign key.
This fixes serialization of a ForeignKey to a UUIDField as the
test indicates.
Backport of 5c995dcfc251b55284e1ef16545acd2acad6be04 from master
|
|
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.
Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.
Backport of f287bec5833d75750fa6368bc2802741b7924533 from master
|
|
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
|
|
|
|
This is a security fix. Disclosure following shortly.
Thanks to Jedediah Smith for the report.
|
|
Thanks Thomas Güttler for the report and the initial patch, and
Tim Graham for the review.
|
|
Thanks Tim Graham for the review.
|
|
|
|
Thanks Tim Graham and Markus Holtermann for the reviews.
|
|
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
|
|
This adds support for authentication data (`user:password`) in URLs,
IPv6 addresses, and unicode domains.
The test suite has been improved by adding test URLs from
http://mathiasbynens.be/demo/url-regex (with a few adjustments,
like allowing local and reserved IPs).
The previous URL validation regex failed this test suite on 13
occasions, the validator was updated based on
https://gist.github.com/dperini/729294.
|
|
...with the theoretical assumption that gettext may once reach a
two-digit number. Thanks Walter Doekes for noticing this potential
issue.
|
|
Thanks Berker Peksag for the review.
|
|
Thanks jdetaeye for the report, bhuztez and jdetaeye for the
initial patches, Tim Graham and Berker Peksag for the reviews.
|
|
|
|
|
|
This facilitates performance debugging related to migrations.
|
|
|
|
|
|
|
|
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn
for their input, ideas, and review.
|
|
Refs #23271
|