Tim Graham
1dae4ac177
Whitespace cleanup.
...
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
2013-10-10 16:49:20 -04:00
Claude Paroz
1b9c72fc4f
Fixed grammar/typos in auth customization docs
2013-10-09 16:21:19 +02:00
Dan Loewenherz
43f213e475
Fix grammatical errors in email documentation
2013-10-08 09:21:45 -05:00
Russell Keith-Magee
ddb53856b6
Fixed #21164 -- Added documentation for issue with test users.
...
The package renaming restores the older package names (which were also the
documented package names). This doesn't affect test discovery because the
module in question doesn't contain any tests.
Thanks to Carl for the design discussion.
2013-10-08 10:32:56 +08:00
Ramiro Morales
67f5dffbec
Re-added link to SQLite notes from DB section of install doc.
2013-10-07 07:40:41 -03:00
Tim Graham
75bb6ba966
Fixed #10913 -- Documented how related_name affects QuerySet filtering
...
Thanks neithere for the suggestion.
2013-10-02 12:12:53 -04:00
Baptiste Mispelon
e1b7723817
Changed the doc to use gender-neutral pronouns when possible.
2013-10-02 16:41:04 +02:00
Tim Graham
00a0d3de02
Clarified session replay attack differences with cookie backend.
2013-10-02 10:15:18 -04:00
Aymeric Augustin
728548e483
Fixed #21134 -- Prevented queries in broken transactions.
...
Squashed commit of the following:
commit 63ddb271a44df389b2c302e421fc17b7f0529755
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 29 22:51:00 2013 +0200
Clarified interactions between atomic and exceptions.
commit 2899ec299228217c876ba3aa4024e523a41c8504
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 22 22:45:32 2013 +0200
Fixed TransactionManagementError in tests.
Previous commit introduced an additional check to prevent running
queries in transactions that will be rolled back, which triggered a few
failures in the tests. In practice using transaction.atomic instead of
the low-level savepoint APIs was enough to fix the problems.
commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Tue Sep 24 22:24:17 2013 +0200
Allowed nesting constraint_checks_disabled inside atomic.
Since MySQL handles transactions loosely, this isn't a problem.
commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Sep 21 18:43:12 2013 +0200
Prevented running queries in transactions that will be rolled back.
This avoids a counter-intuitive behavior in an edge case on databases
with non-atomic transaction semantics.
It prevents using savepoint_rollback() inside an atomic block without
calling set_rollback(False) first, which is backwards-incompatible in
tests.
Refs #21134 .
commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sun Sep 22 22:14:17 2013 +0200
Replaced manual savepoints by atomic blocks.
This ensures the rollback flag is handled consistently in internal APIs.
2013-09-30 09:42:27 +02:00
Michael Manfre
99c87f1410
Fixed #17671 - Cursors are now context managers.
2013-09-25 21:47:26 +03:00
Loic Bistuer
04a2a6b0f9
Fixed #3871 -- Custom managers when traversing reverse relations.
2013-09-25 21:15:59 +03:00
Tim Graham
77f6b468e5
Fixed #21137 -- Corrected ULRconf include example.
...
Thanks marfire for the report.
2013-09-24 09:41:12 -04:00
Tim Graham
45969bdeb5
Removed implication that six is part of Python stdlib.
2013-09-23 18:30:05 -04:00
Daley Chetwynd
a53caf28bf
Fixed #20830 -- Clarified that Django uses a customized version of six.
...
Thanks glarrain for the suggestion.
2013-09-23 11:03:50 -04:00
Åke Forslund
6a30075eaa
Fixed #21140 -- Added 'Using cached sessions' to the performance guide.
...
Thanks EvilDMP for the suggestion.
2013-09-23 10:50:19 -04:00
Ramiro Morales
ce0c5c38ea
A few doc additions for changes from d228c1192e
.
2013-09-22 13:46:16 -03:00
Ramiro Morales
9dc45efeba
Reference Meta.index_together in DB performance guide.
2013-09-22 11:11:02 -03:00
Michael DiBernardo
222460a994
Fixed #21137 -- Documented best practice for URLconfs with repeated pattern prefixes.
2013-09-21 18:17:21 -04:00
Aymeric Augustin
11187386f4
Addressed inaccuracies in performance docs
...
* Move the discussion of CachedStaticFilesStorage to the section about
HTTP. It's really about client-side caching. It doesn't fit with the
caching utilities from django.utils.functional.
* Tone down the warning against Pypy as per Alex' feedback. It's a valid
choice for advanced users who are comfortable using a non-standard
stack.
* Generally reworded the 'Using different versions of available software'
section.
* Some other minor adjustments to the document.
2013-09-21 16:41:26 +01:00
evildmp
dc8f95b639
Fixed #20877 -- added a performance optimization guide
2013-09-20 23:21:49 +01:00
Aymeric Augustin
4db2752e28
Clarified why one must not catch database errors inside atomic.
2013-09-20 21:56:35 +02:00
Markus Amalthea Magnuson
2c5c422d34
Added missing "in" in sentence.
2013-09-19 13:26:01 -04:00
yokomizor
df27803a55
Fixed #9532 -- Added min_num and validate_min on formsets.
...
Thanks gsf for the suggestion.
2013-09-19 13:11:49 -04:00
Tim Graham
d1c9802811
Fixed #21116 -- Made usage of manage.py in docs more consistent.
...
Thanks daniel.quattro at gmail.com for the report.
2013-09-18 10:35:41 -04:00
Berker Peksag
2f0566fa61
Fixed #4278 -- Added a dirs parameter to a few functions to override TEMPLATE_DIRS.
...
* django.template.loader.get_template()
* django.template.loader.select_template()
* django.shortcuts.render()
* django.shortcuts.render_to_response()
Thanks amcnabb for the suggestion.
2013-09-18 07:37:08 -04:00
Ramiro Morales
9d12f68a53
Reworded a paragraph in the logging docs.
2013-09-16 17:49:46 -03:00
Tim Graham
18ffdb1772
Fixed #17627 -- Renamed util.py files to utils.py
...
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor Kołodziej for the initial patch.
2013-09-16 12:52:05 -04:00
Tim Graham
da843e7dba
Fixed #20887 -- Added a warning to GzipMiddleware in light of BREACH.
...
Thanks EvilDMP for the report and Russell Keith-Magee
for the draft text.
2013-09-11 08:17:15 -04:00
Kevin Christopher Henry
5eca021d48
Documentation -- Improved description of cache arguments
...
- Fixed some grammar and formatting mistakes
- Added the type and default for CULL_FREQUENCY
- Made the note on culling the entire cache more precise. (It's actually
slower on the filesystem backend.)
2013-09-11 07:42:49 -04:00
Juan Catalano
4840fd9cbc
Fixed #20919 -- Extended assertRedirects to be able to avoid fetching redirect's response.
...
Thanks mjtamlyn for the suggestion.
2013-09-10 12:22:55 -04:00
Tim Graham
4ba373840a
Fixed #16534 -- Improved ability to customize DiscoverRunner
...
Added DiscoverRunner.test_suite and .test_runner attributes.
Thanks tomchristie for the suggestion and jcd for the patch.
2013-09-10 09:49:39 -04:00
Kevin Christopher Henry
9d700322b3
Fixed #19885 -- cleaned up the django.test namespace
...
* override_settings may now be imported from django.test
* removed Approximate from django.test
* updated documentation for things importable from django.test
Thanks akaariai for the suggestion.
2013-09-09 16:03:13 -04:00
e0ne
cbf08c6b0c
Fixed #16895 -- Warned about cost of QuerySet ordering
...
Thanks outofculture at gmail.com for the suggestion.
2013-09-09 09:47:18 -04:00
Tim Graham
e4b012feeb
Fixed #21068 -- Added some docs for DiscoverRunner
...
Thanks jcd.
2013-09-07 16:10:07 -04:00
Tim Graham
0c295a7718
Fixed a link in topics/testing/overview.txt
2013-09-06 17:41:12 -04:00
Tim Graham
db3de52807
Fixed #20646 -- Clarified the use of AbstractBaseUser.REQUIRED_FIELDS
...
Thanks craigbruce.
2013-09-06 16:01:29 -04:00
evildmp
79cc66692a
Consolidated documentation for F() and Q()
2013-09-06 12:57:25 -05:00
Eric Boersma
4d13cc56de
Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
...
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.
2013-09-05 20:14:58 -04:00
Aymeric Augustin
6a6428a36f
Took advantage of django.utils.six.moves.urllib.*.
2013-09-05 14:39:23 -05:00
CHI Cheng
ed9cd4fd8b
Fixed #21000 -- Made cached_db session backend respect SESSION_CACHE_ALIAS
2013-09-05 10:47:58 -04:00
Loic Bistuer
b7af44d474
Removed "makemigrations --force" from docs since it doesn't actually exist.
2013-09-05 02:33:05 +07:00
Tim Graham
3baf1d1042
Fixed #21002 -- Documented JSON session serialization requires string keys
...
Thanks jeroen.pulles at redslider.net for the report.
2013-09-03 07:48:03 -04:00
Aymeric Augustin
365c3e8b73
Replaced "not PY3" by "PY2", new in six 1.4.0.
2013-09-02 12:11:02 +02:00
Ramiro Morales
e909ceae9b
Made django.test.testcases not depend on staticfiles contrib app.
...
Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase
unittest TestCase subclass.
Fixes #20739 .
2013-08-31 11:02:32 -03:00
Loic Bistuer
9885f07757
Made the doc about translating string literals in templates more prominent.
2013-08-31 07:59:53 -04:00
Tim Graham
be48c6c199
Fixed #20997 -- Added SessionStore note to docs.
...
Thanks jsdalton.
2013-08-29 14:15:58 -04:00
Phaneendra Chiruvella
2fbf949760
Minor spelling correction in ModelForms docs
2013-08-28 16:05:46 +05:30
Krzysztof Jurewicz
095643e691
Fixed #20981 -- Noted the default value of disable_existing_loggers.
2013-08-27 10:25:26 -04:00
Tim Graham
c9a69cdb93
Fixed #20976 -- Fixed labels in migration docs.
...
Thanks chrismedrela for the report.
2013-08-27 08:05:13 -04:00
Jan Böcker
5fd2c979cb
Fixed typo in docs/topics/conditional-view-processing.txt
2013-08-26 11:19:40 +02:00
Andrew Godwin
5569b0b92f
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/db/backends/oracle/base.py
django/db/backends/postgresql_psycopg2/base.py
django/db/models/signals.py
tests/queries/tests.py
2013-08-23 12:36:53 +01:00
Ramiro Morales
57c82f909b
Typos introduced in 297f5af222
.
2013-08-22 21:25:35 -03:00
Tim Graham
b0ce6fe656
Fixed #20922 -- Allowed customizing the serializer used by contrib.sessions
...
Added settings.SESSION_SERIALIZER which is the import path of a serializer
to use for sessions.
Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.
2013-08-22 13:58:26 -04:00
Kevin Christopher Henry
2e926b041c
Documentation -- Clarified use of 'view' in test client introduction.
2013-08-22 09:37:03 -04:00
Ramiro Morales
297f5af222
Made description of LANGUAGE_CODE setting more clear.
2013-08-22 08:27:04 -03:00
Ramiro Morales
01223840f3
Fixed #18967 -- Don't base64-encode message/rfc822 attachments.
...
Thanks Michael Farrell for the report and his work on the fix.
2013-08-21 22:32:04 +01:00
Ramiro Morales
f9d1d5dc13
Fixed #18967 -- Don't base64-encode message/rfc822 attachments.
...
Thanks Michael Farrell for the report and his work on the fix.
2013-08-20 22:17:26 -03:00
Andrew Godwin
b6a957f0ba
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
docs/ref/django-admin.txt
2013-08-19 18:30:48 +01:00
Tim Graham
7b69c3e775
Removed versionadded/changed annotations for 1.5
2013-08-19 09:09:41 -04:00
Tim Graham
29255fcb4f
Fixed some ReST errors regarding backticks
2013-08-15 07:14:10 -04:00
Mel Collins
6bdb3b1135
Fixed #13518 -- Added FILE_UPLOAD_DIRECTORY_PERMISSIONS setting
...
This setting does for new directories what FILE_UPLOAD_PERMISSIONS
does for new files.
Thanks jacob@ for the suggestion.
2013-08-12 07:15:59 -04:00
Tim Graham
ab680725bf
Fixed #20890 -- Added missing import in class-based view docs.
...
Thanks André Augusto.
2013-08-10 18:08:05 -04:00
Andrew Godwin
7970d97a70
Docs tweaks (thanks timgraham)
2013-08-10 20:00:12 +01:00
ersran9
00d23a13eb
Fixed #20828 -- Allowed @permission_required to take a list of permissions
...
Thanks Giggaflop for the suggestion.
2013-08-10 10:10:18 -04:00
Andrew Godwin
de64c4d6e9
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/core/management/commands/flush.py
django/core/management/commands/syncdb.py
django/db/models/loading.py
docs/internals/deprecation.txt
docs/ref/django-admin.txt
docs/releases/1.7.txt
2013-08-09 14:17:30 +01:00
Leandro Regueiro
709cd2c4b7
Added section labels in cache docs
2013-08-06 11:56:01 -04:00
Dominic Rodger
c33d1ca1d9
Fixed #20852 - Fixed incorrectly generated left quotes in docs.
...
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.
Instances of the problem were found by looking for
">‘" in the generated HTML.
2013-08-06 07:13:17 -04:00
Justin Michalicek
6d88d47be6
Fixed #20832 -- Enabled HTML password reset email
...
Added optional html_email_template_name parameter to password_reset view
and PasswordResetForm.
2013-08-05 09:47:28 -04:00
Tim Graham
26c4bd38ac
Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.
...
Thanks Keryn Knight.
2013-08-05 08:14:27 -04:00
Justin Michalicek
61ecb5f48a
Fixed #20855 -- Added documentation of current_app and extra_context params to django.contrib.auth views
...
refs #5298 and refs #8342
2013-08-04 08:04:12 -04:00
Alasdair Nicol
a0c58113b9
Added missing request argument to example in URL dispatcher docs
2013-08-03 20:42:02 +01:00
Tim Graham
31ee120787
Fixed #20667 - Removed discussion of DEBUG from tutorial.
...
Forward-port of 3493f18d78
from master.
2013-08-01 18:07:59 -04:00
Tim Graham
a1889397a9
Fixed #12103 -- Added AuthenticationForm.confirm_login_allowed to allow customizing the logic policy.
...
Thanks ejucovy and lasko for work on the patch.
2013-07-31 13:54:05 -04:00
Tim Graham
d4dd55e78c
Doc tweaks for html_message parameter to send_mail(); refs #20817
2013-07-30 08:06:49 -04:00
Andrew Godwin
fddc5957c5
Implement allow_migrate for migration operations
2013-07-30 12:34:31 +01:00
Andrew Godwin
12e9804d16
Rename allow_syncdb to allow_migrate
2013-07-30 12:08:59 +01:00
Andrew Godwin
68e0a169c4
Rename pre_ and post_syncdb to *_migrate, with aliases from old names
2013-07-30 11:52:52 +01:00
Justin Michalicek
ac09558760
Fixed #20817 -- Added html_message parameter to django.core.mail.send_mail()
2013-07-29 09:53:47 -04:00
minusf
70c080fcdb
Misc doc cleanups.
2013-07-29 06:57:33 -04:00
Jannis Leidel
33e6cf5ec3
Fixed #20774 -- Mention the new django-localflavor app as a replacement for the contrib app.
2013-07-29 10:54:53 +02:00
Tim Graham
0b35a2cce3
Fixed ReST typo in topics/class-based-views/mixins.txt
2013-07-28 14:09:29 -04:00
Julien Phalip
47c755327b
Fixed a number of minor misspellings.
2013-07-27 18:46:03 -07:00
Andrew Godwin
88e1e6f9f3
A bit more documentation
2013-07-26 16:28:09 +01:00
Loic Bistuer
31fadc1202
Fixed #20625 -- Chainable Manager/QuerySet methods.
...
Additionally this patch solves the orthogonal problem that specialized
`QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
type. This wasn't an issue until now because we didn't officially support
custom `QuerySet` but it became necessary with the introduction of this new
feature.
Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
for the reviews.
2013-07-26 12:41:27 +03:00
Andrew Godwin
f8297f6323
More migration docs, and conversion of all easy syncdb references
2013-07-25 16:19:36 +01:00
Andrew Godwin
06103c8ef5
Small start to migrations documentation
2013-07-25 14:45:38 +01:00
Tim Graham
bd0dcc6c89
Fixed #20766 -- Deprecated FastCGI support.
2013-07-24 13:41:45 -04:00
Tim Graham
65e03a424e
Fixed #10284 -- ModelFormSet.save(commit=False) no longer deletes objects
...
Thanks laureline.guerin@ and Wedg.
2013-07-23 16:21:23 -04:00
Claude Paroz
6d52844b9b
Fixed #18551 -- Enabled skipIfDBFeature/skipUnlessDBFeature to decorate a class
...
Thanks Tim Graham for the review and improved patch.
2013-07-19 20:30:14 +02:00
Tim Graham
e1c737b62f
Merge pull request #1374 from seocam/fix_i18n_docs
...
LocaleMiddleware isn't default anymore (corrected docs)
2013-07-19 03:35:46 -07:00
Tim Graham
997e305d24
Merge pull request #1375 from Matt-Stevens/master
...
Fixed Croatia's country code in `localflavor` docs
2013-07-19 02:30:27 -07:00
Tim Graham
4669986228
Merge pull request #1378 from loic/docs
...
Fixed #20772 -- Fixed minor typo in form media docs.
2013-07-19 02:19:24 -07:00
Loic Bistuer
aa41eb9b8b
Fixed #20772 -- Fixed minor typo in form media docs.
2013-07-19 15:48:38 +07:00
Matt Deacalion Stevens
97e5398629
Fix Croatia's country code in `localflavor` docs
...
Croatia's country code is 'HR', not 'CR'.
2013-07-19 09:01:13 +01:00
Sergio Oliveira
cf6c754629
LocaleMiddleware isn't default anymore
...
Changed in @23229061fcb836ecca2195cc75f91e331279a5d1
2013-07-18 21:15:30 -03:00
Tim Graham
dce8945ea6
Fixed #20762 -- Clarified that add_fieldsets is not a standard ModelAdmin attribute.
2013-07-18 12:41:01 -04:00
Loic Bistuer
fba6c2ede7
Reworked docs for ModelForm validation.
2013-07-16 19:20:53 -04:00
David Binetti
51b50c47c7
Fixes grammatical error in auth docs
...
Changes "An error will be raise if you try..." to "An error will be raised if you try..."
2013-07-13 20:28:04 -07:00
Claude Paroz
64099e30e8
Removed obsolete sentence in queries docs
2013-07-13 21:08:44 +02:00
Joeri Bekker
66f3d57b79
Fixed #19031 -- Added a warning when using override_settings with 'DATABASES'
2013-07-12 07:10:18 -04:00