Commit Graph

2001 Commits

Author SHA1 Message Date
I am Clinton 87934c4b68 [1.8.x] Fixed typos in HTTP decorator docs.
Backport of 0b0bb6100d from master
2015-05-25 07:39:06 -04:00
I am Clinton ae03d1ac5b [1.8.x] Fixed mistakes in docs/topics/forms/formsets.txt examples.
Backport of 9c8a2ab81d from master
2015-05-22 11:29:49 -04:00
Tim Graham f7401b6bb0 [1.8.x] Fixed typo in docs/topics/auth/default.txt
Backport of 00d763a4fb from master
2015-05-22 06:51:26 -04:00
Laurent Peuch 27fdd45620 [1.8.x] Enhanced registration/login.html example template.
Backport of 1369da676f3bd83d694ca5f00c5012f16b007acb from master
2015-05-21 20:46:07 -04:00
Tim Graham 02a4bf7105 [1.8.x] Added docs for assertRaisesMessage as context manager.
Backport of a0175724b0 from master
2015-05-18 10:16:14 -04:00
Tim Graham 6108febe2a [1.8.x] Fixed typo in docs/topics/http/sessions.txt
Backport of fc1eea59c0 from master
2015-05-17 18:37:03 -04:00
I am Clinton f19932591b [1.8.x] Minor edits to docs/topics/http/urls.txt
Backport of dce004ab72 from master
2015-05-14 19:32:27 -04:00
Charles Dee Rice e4fa298e30 [1.8.x] Fixed #24789 -- Fixed wrong positional args order in doc example
Arguments shown in example code (signal, sender, instance) appeared to
be the incorrect positional arguments for a post_save signal (which
might start as: sender, instance, created), as documented:
​https://docs.djangoproject.com/en/1.8/ref/signals/#post-save

Backport of 4f3c444241 from master.
2015-05-13 10:27:18 +02:00
I am Clinton 3ad1074cf9 [1.8.x] Light edits to docs/topics/forms/index.txt
Backport of ec74dba2ab from master
2015-05-12 09:17:14 -04:00
Tim Graham d3a8f36fdb [1.8.x] Fixed #24780 -- Removed outdated discussion of signals and custom users.
Backport of 8e86d9d3df from master
2015-05-11 09:10:44 -04:00
Ian Foote e7b703d050 [1.8.x] Fixed typo in docs/topics/testing/tools.txt
Backport of c21b832c12 from master
2015-05-09 18:06:38 -04:00
David Krisch 51ebc8805e [1.8.x] Fixed #24763 -- Moved DoesNotExist exception to model docs.
Backport of 1a62f19707 from master
2015-05-08 13:13:45 -04:00
José Padilla 0c79932881 [1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19 from master
2015-05-02 20:21:36 +02:00
Dave Hodder 53031cce42 [1.8.x] Updated capitalization in the word "JavaScript" for consistency
Backport of 08c980d752 from master
2015-05-01 13:27:40 -04:00
Dmitry Medvinsky 49dea4164a [1.8.x] Added translation.override() context manager to docs.
Backport of cf34ee68f0 from master
2015-04-29 21:23:22 -04:00
Baptiste Mispelon d5fb31da17 [1.8.x] Used full variable names instead of abbreviation in examples
Thanks to Andrew Ingram for the report.
Backport of 683ece0ec8 from master.
2015-04-29 17:24:03 +02:00
Mounir ec23572f12 [1.8.x] Fixed typo in docs/topics/i18n/translation.txt
Backport of 25b52d04f6 from master
2015-04-28 12:53:38 -04:00
Adam Zapletal fc342bff94 [1.8.x] Fixed a typo and formatting consistency in testing tools docs
I changed "appears" to "appear" and emphasized the word "not" to match
the rest of the document.

Backport of 0cf7477ed8 from master
2015-04-25 12:24:54 +02:00
Nik Nyby 9e647ce86f [1.8.x] Added missing comma in LocMemCache example.
Backport of 9d6914da66 from master
2015-04-24 20:29:25 -04:00
Marcus Pennington 2a334d7985 [1.8.x] Fixed #24700 -- Added dash to slug regex in http docs
Backport of 269a5dbdd3 from master
2015-04-24 13:10:51 -04:00
Daniel Harding 911e09833b [1.8.x] Updated startproject MIDDLEWARE_CLASSES in docs.
Backport of ad31bc0565 from master
2015-04-24 09:34:19 -04:00
Tim Graham 322b9c90aa [1.8.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Backport of 1418f75304 from master
2015-04-22 09:31:43 -04:00
Tim Graham 43f800a978 [1.8.x] Fixed #24659 -- Clarified docs of smtp.EmailBackend parameters.
Backport of ffe83d16bd from master
2015-04-20 15:47:07 -04:00
Simon Charette beb957041c [1.8.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.
Thanks to knbk for the report.

Backport of 37e23c6060 from master
2015-04-20 15:19:57 -04:00
Anton 76f20c5307 [1.8.x] Fixed typo in docs/topics/class-based-views/intro.txt
Backport of f5fbddf22f from master
2015-04-20 14:11:51 -04:00
Marco Santamaria 1e0bf2cab9 [1.8.x] Fixed #11078 -- Removed inaccurate docs about proxy models Meta.
Backport of bae72bdd2a from master
2015-04-20 09:17:28 -04:00
Tim Graham 9e5e4914ef [1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2.
Backport of d974c89ebb from master
2015-04-16 19:33:07 -04:00
Daniel Lindsley 1e594b257e [1.8.x] Fixed #23984 -- Added Javascript i18n documentation
This fleshes out the documentation around all of the exported
Javascript functions available from the ``javascript_catalog``
view.

Backport of 8ca9bc5ec3 from master
2015-04-16 08:19:30 -04:00
Tim Graham 62012b071e [1.8.x] Removed docs for removed transaction APIs.
Backport of 6b8c969878 from master
2015-04-14 13:53:18 -04:00
Tim Graham 993074d78d [1.8.x] Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models.
Backport of 981e3b9394 from master
2015-04-07 10:47:48 -04:00
Patrik Lundin b3d36c3514 [1.8.x] Specified file names for example code in docs/topics/forms/index.txt
Backport of f9c212d09a from master
2015-04-07 09:35:39 -04:00
Thomas Güttler ffa5a7550d [1.8.x] Added admonition about reusable apps and AUTH_USER_PROFILE.
Backport of 566c936236 from master
2015-04-06 19:50:23 -04:00
Sam Thursfield 5cc0407e45 [1.8.x] Fixed #24556 -- Added reminder about HTTPS to passwords docs.
Backport of 1119063c69 from master
2015-04-03 10:55:35 -04:00
Aymeric Augustin ae4d21e159 [1.8.x] Pointed Jinja2 users to Babel instead of makemessages.
Backport of 8520551 from master
2015-04-01 22:37:39 +02:00
Kostochko Dmitriy c2674c2103 [1.8.x] Fixed typo in docs/topics/cache.txt
Backport of d026eb6366 from master
2015-03-31 21:16:26 -04:00
Tim Graham 793ecf6db7 [1.8.x] Documented jinja2 install requirement.
Backport of 56286542db from master
2015-03-31 07:45:02 -04:00
Jorge Barata González 2bddc74b42 [1.8.x] Fixed #15590 -- Documented how the path of a FileField can be changed.
Thanks simon29 for report, and freakboy3742, floledermann,
jacob, claudep and collinanderson for discussing the task.

Backport of 931a340f1f from master
2015-03-30 10:39:14 -04:00
Christopher Luc c4e8f21a9c [1.8.x] Fixed #24281 -- Improved docs for timezone handling for auto_now and auto_now_add
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.

Backport of 8119876d4a from master
2015-03-29 23:38:51 +02:00
Tim Graham a70dea2c06 [1.8.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c3 from master
2015-03-28 08:59:50 -04:00
Tim Graham b0846a040e [1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt
Backport of 3e132406e3 from master
2015-03-28 07:51:37 -04:00
SaeX 6f69e77a9e [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 19e41a9799 from master
2015-03-28 07:40:54 -04:00
David Seddon ef61b69447 [1.8.x] Corrected typo in documentation
Backport of 0f6f80c2e7 from master
2015-03-25 13:44:13 -04:00
Tim Graham 0dc986d1c8 [1.8.x] Fixed #24361 -- Clarified docs on reconfiguring logging.
Thanks Tuttle for the report and draft patch, and Carl Meyer for
help and review.

Backport of c633667da3 from master
2015-03-24 12:26:25 -04:00
Matt Seymour 09933aef68 [1.8.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
Backport of fca14cd3f2 from master
2015-03-24 10:30:30 -04:00
Bas Peschier 015a9b928a [1.8.x] Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.
When reversing, only outer parameters are used if captured parameters are
nested. Added tests to check the edge cases and documentation for the
behavior with an example to avoid it.

Backport of 23a5d64f40 from master
2015-03-23 08:43:58 -04:00
Iacopo Spalletti 6da4ce5365 [1.8.x] Fixed #23814 -- Pointed localflavor documentation to external package
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.

Backport of 87fed94440 from master.
2015-03-22 15:36:44 +01:00
David Seddon 744d9a10ef [1.8.x] Refs #14645 -- Documented bug with exclude() and multi-value relations
Backport of 6770b7ecd2 from master
2015-03-20 17:51:57 -04:00
Claude Paroz 5da3153d56 [1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided
Thanks aruseni for the report.
Backport of 556eb67701 from master.
2015-03-20 20:46:02 +01:00
Karl Hobley a8c53041f9 [1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
Backport of 81e1a35c36 from master
2015-03-18 19:12:46 -04:00
Adrian Andreias 63b998a653 [1.8.x] Fixed allow_migrate() signature in router examples.
Backport of 937643a1f2 from master
2015-03-16 09:39:41 -04:00
Floris den Hengst bd36f2d432 [1.8.x] Fixed doc typos.
Backport of e42a720ba2 from master
2015-03-14 12:29:27 -04:00
Andrei Kulakov 937c8a5a14 [1.8.x] Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
Backport of b089759d60 from master
2015-03-13 13:24:18 -04:00
Remco Kranenburg 6f555e54f7 [1.8.x] Refs #23559 -- warned about consequences of letting users edit User model in admin.
Backport of f6b09a7f85 from master
2015-03-13 08:51:24 -04:00
Dan Fellin 9f39715509 [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12e from master
2015-03-11 19:58:14 -04:00
Psilo Cybin b25e542ecd [1.8.x] Fixed #24456 -- Added links to topics/forms/modelforms.txt.
Backport of 866e71140f from master
2015-03-09 20:53:05 -04:00
Rik 930fc4db7b [1.8.x] Fixed #21661 -- Expanded authentication views documentation
Backport of eb9b7abb83 from master.
2015-03-08 20:40:33 +01:00
Marten Kenbeek bd7c879d5a [1.8.x] Stressed authentication should be successful before logging in a user.
Backport of 8e744fa150 from master
2015-03-05 12:18:13 -05:00
Tim Graham cc525e31bb [1.8.x] Fixed #13015 -- Clarified language about model instances attached to forms.
Backport of a40a34a4b2 from master
2015-03-02 18:45:27 -05:00
Sean Wang f0780df608 [1.8.x] Fixed #24358 -- Corrected code-block directives for console sessions.
Backport of eba6dff581 from master
2015-02-22 09:36:51 -05:00
Loic Bistuer 3a6c37fce4 [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate().
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 bed504d70b from master
2015-02-20 21:55:50 +07:00
Tim Graham e4df10668c [1.8.x] Added an import to docs/topics/testing/advanced.txt example.
Backport of 32b67b3fd1 from master
2015-02-17 13:53:57 -05:00
Tim Graham fb9551189d [1.8.x] Fixed #24350 -- Freshened up database install topic section.
Backport of 35f0cae19d from master
2015-02-16 14:59:57 -05:00
Carl Meyer e63d9b98e7 [1.8.x] Fixed #23892 -- Clarified compatibility policy for migrations.
Backport of e35c70bef4 from master
2015-02-16 10:12:13 -05:00
Aymeric Augustin e8950668ca [1.8.x] Deprecated TEMPLATE_DEBUG setting.
Backport of 15b711b from master.
2015-02-15 20:48:48 +01:00
Aymeric Augustin 69c662c981 [1.8.x] Documented how to set up the Jinja2 environment.
This may also help with "Why do context processors not work in Jinja2
templates?" etc.

Backport of 9fbd302 from master
2015-02-15 20:44:40 +01:00
Markus Holtermann bd80fa6b0f [1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations
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 f287bec583 from master
2015-02-13 15:21:10 +01:00
Thomas Güttler 6b8c8d7e18 [1.8.x] Clarified timeout=0 in cache docs.
Backport of e519ee1d35 from master
2015-02-12 10:32:56 -05:00
minusf 5bc9904b35 [1.8.x] Removed inaccurate sentence about PO files in translation docs.
Backport of aea103b6a5 from master
2015-02-06 07:46:14 -05:00
Tim Graham dd83bab931 [1.8.x] Demoted "Installing a distribution-specific package" in install notes.
Backport of 281fc03474 from master
2015-02-03 16:38:05 -05:00
Tim Graham ff39de1e1e [1.8.x] Added a "Writing migrations" how-to.
Backport of 570912a97d from master
2015-02-03 13:46:56 -05:00
Aymeric Augustin f87457a460 [1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs.
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.

Also added a test for render_to_response(status=...) which was missing
from fdbfc980.

Thanks Tim and Carl for the review.

Backport of 2133f31 from master.

Conflicts:
	docs/topics/http/shortcuts.txt
	tests/generic_views/test_base.py
2015-02-03 08:32:14 +01:00
Matt Westcott ef90ca5f42 [1.8.x] Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
Backport of 8d64aae883 from master
2015-02-02 10:47:42 -05:00
Tim Graham 6d0538bd8c [1.8.x] Simplified a versionchanged notes for LiveServerTestCase. 2015-02-01 21:06:27 -05:00
Andrei Kulakov 3d3c7a62c8 [1.8.x] Updated recommendation for testing keyword arg in custom fields.
Backport of dbabf43920 from master
2015-01-30 08:30:03 -05:00
Rick Hutcheson 801287bff2 [1.8.x] Fixed a typo in the test responses docs.
Backport of 996292d649 from master
2015-01-16 18:24:44 -05:00
Keryn Knight 726a9550db Fixed #24143 -- Encouraged use of Http404 messages for debugging. 2015-01-16 09:41:01 -05:00
Collin Anderson 26a92619f6 Fixed #24124 -- Changed context_processors in the default settings.py 2015-01-12 13:17:44 -05:00
Marc Tamlyn b5c1a85b50 Fixed #24118 -- Added --debug-sql option for tests.
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.

Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
2015-01-12 08:16:08 +00:00
Aymeric Augustin ee8d5b91e9 Wrote main documentation for templates. 2015-01-10 20:16:19 +01:00
Aymeric Augustin 6c392bb2c0 Moved doc on the DTL's syntax to the ref/ section.
This makes room for a more general introduction about templating.

Updated some links to point to the new location, but kept those that
didn't talk specifically about the DTL.
2015-01-10 19:41:14 +01:00
Loic Bistuer 8f4877c89d Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-10 00:30:48 +07:00
Claude Paroz e0080cf577 Fixed #24083 -- Corrected is_bound nature in forms topic docs
Thanks ajenhl Trac user for the report.
2015-01-06 08:56:53 +01:00
Tim Graham c87ee41954 Fixed #23861 -- Added an API to deprecate model fields.
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05 11:35:36 -05:00
Alfred Perlstein db3f7c15cb Fixed #23749 -- Documented how to use the database alias in RunPython.
Thanks Markus Holtermann for review and feedback.
2015-01-03 12:06:40 -05:00
Tim Graham 52f0b2b622 Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
Andriy Sokolovskiy 23f1a8dad2 Added return value to Signal.disconnect(). 2015-01-02 12:00:41 -05:00
Tim Graham a7aaabfaf1 Removed doc note about PasswordResetForm requiring an integer PK.
This limitation was lifted in refs #14881.
2015-01-01 11:38:53 -05:00
Andriy Sokolovskiy 8c99b7920e Fixed #12118 -- Added shared cache support to SQLite in-memory testing. 2014-12-30 10:14:33 -05:00
Aymeric Augustin 9eb4f28e89 Deprecated TEMPLATE_CONTEXT_PROCESSORS. 2014-12-28 17:02:31 +01:00
Aymeric Augustin d3205e3e2e Deprecated TEMPLATE_DIRS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf0fd65ed4 Deprecated TEMPLATE_LOADERS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin d3a982556d Deprecated TEMPLATE_STRING_IF_INVALID. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf1f36bb6e Deprecated current_app in TemplateResponse and render(_to_response). 2014-12-28 17:02:29 +01:00
Aymeric Augustin fdbfc98003 Deprecated some arguments of django.shortcuts.render(_to_response).
dictionary and context_instance and superseded by context.

Refactored tests that relied context_instance with more modern idioms.
2014-12-28 17:02:29 +01:00
Aymeric Augustin 92e8f1f302 Moved context_processors from django.core to django.template. 2014-12-28 17:00:07 +01:00
Tim Graham 3d0c3a0482 Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt. 2014-12-27 19:49:16 -05:00
Helen Sherwood-Taylor 4ccdf6e57f Fixed #24041 -- Documented effect of changing a model instance's primary key. 2014-12-24 15:06:09 -05:00
Thomas Tanner b27db97b23 Fixed #22461 -- Added if-unmodified-since support to the condition decorator. 2014-12-24 12:33:57 -05:00
Frankie Robertson 446b50b90e Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX 2014-12-23 14:35:30 -05:00
Alexander Schulze cf2390be16 Fixed #23959 -- Clarified when checks automatically run. 2014-12-22 11:35:19 -05:00