Commit Graph

1040 Commits

Author SHA1 Message Date
Tim Graham c6088bc91d Fixed #18840 - Added a mentioned of the upload_to parameter to the ModelForm example in file uploads. 2012-09-01 15:38:44 -04:00
Tim Graham 74c025d028 Fixed #13608 - Noted that template lookups use literal values. 2012-09-01 09:24:39 -04:00
Chris Streeter fef641d164 Clarify some of the password reset docs
Some of the wording was copied from the change password section. Updated
the text to clarify that the we are talking about password resets.
2012-08-31 16:13:50 -07:00
Florian Apolloner 785980d30e Merge pull request #310 from juanpex/master
fix documentation testing of Selenium WebDriverWait
2012-08-31 04:59:59 -07:00
Florian Apolloner fc81854934 Merge pull request #311 from gutworth/py3-doc
Indexing bytes is the problem not slicing.
2012-08-31 04:56:42 -07:00
Tim Graham 141e6cd2ac Fixed #18871 - Fixed typo in multi-db docs. 2012-08-30 06:45:11 -04:00
Claude Paroz ebc773ada3 Replaced many smart_bytes by force_bytes
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
2012-08-29 11:20:32 +02:00
Benjamin Peterson c87b08d2a1 Indexing bytes is the problem not slicing. 2012-08-28 20:46:42 -04:00
juanpex bfa3d5af34 fix documentation testing of Selenium WebDriverWait
According to the documentation of Selenium, WebDriverWait class has no timeout parameter and using the code fails.

http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/FluentWait.html#until%28com.google.common.base.Predicate%29
2012-08-27 21:04:20 -03:00
Tim Graham df7c1a13a0 Fixed #18804 - Reorganized class based views docs a bit; thanks anthonyb for the initial patch. 2012-08-25 08:13:43 -04:00
Tim Graham e57338f2b9 Fixed #18847 - Updated for media examples to use static.example.com. Thanks Jamie Curle. 2012-08-24 08:23:50 -04:00
Carlos Palol f200ffd701 Fixed typo in docs 2012-08-23 16:46:38 +02:00
Tim Graham e06189f7ce Merge pull request #297 from mjjohnson/ticket_17069
Fixed #17069 -- Added log filter example to docs.
2012-08-22 17:36:46 -07:00
Tim Graham 13d47c3f33 Fixed #18637 - Updated some documentation for aspects of models that are ModelForm specific, not admin specific.
Thanks Ben Sturmfels for the patch.
2012-08-21 17:38:16 -04:00
Tim Graham 3fd89d9903 Fixed #14885 - Clarified that ModelForm cleaning may not fully complete if the form is invalid.
Thanks Ben Sturmfels for the patch.
2012-08-21 17:32:53 -04:00
Michael Johnson 32ffcb21a0 Fixed #17069 -- Added log filter example to docs.
Added an example of filtering admin error emails (to exclude
UnreadablePostErrors) to the docs.
2012-08-21 09:01:11 -04:00
Alex Gaynor 831f2846dd Fixed #18819 -- fixed some typos in the auth docs 2012-08-20 14:27:28 -07:00
Aymeric Augustin 1288572d92 Made an example more readable in the URLs docs. 2012-08-20 18:23:17 +02:00
Aymeric Augustin 4e82d61400 Added links in URLs doc for consistency. 2012-08-20 15:02:25 +02:00
Tim Graham 514a0013cd Fixed #17180 - Emphasized the need to load the i18n template tag in each template that uses translations. Thanks stefan.freyr for the suggestion and buddylindsey for the draft patch. 2012-08-19 18:46:46 -04:00
Aymeric Augustin 7631fb8f37 Clarified a sentence in the Python 3 docs.
Thanks dstufft for the report.
2012-08-19 21:21:53 +02:00
Marc Tamlyn 268fa9631e Fixed indentation in the Python3 docs 2012-08-19 20:04:52 +02:00
Aymeric Augustin 500fe9c639 [py3] Wrote Django-specific porting tips
and extended the existing Python 3 documentation.
2012-08-19 16:30:07 +02:00
Aymeric Augustin 4c1286cf78 [py3] Added compatibility import of thread/_thread
This commit fixes the auto-reload of the development server.

I should have done that change in ca07fda2.
2012-08-18 10:56:56 +02:00
Preston Holmes e437dd1d6b Update docs/topics/class-based-views/index.txt
View class does not have a render_to_response method - so does not make sense for this mixin
2012-08-17 17:29:46 -07:00
Tim Graham b1f18e95a5 Fixed #17183 - Added a note regarding LocaleMiddleware at the top of the i18n docs. Thanks krzysiumed for the patch. 2012-08-16 18:16:19 -04:00
Florian Apolloner d2975718fe Consistenly use _ as alias for ugettext_lazy in the i18n docs. 2012-08-13 16:54:13 +02:00
Aymeric Augustin 031896c510 [py3] Explained @python_2_unicode_compatible usage 2012-08-12 15:22:33 +02:00
Tim Graham cb38fd9632 Fixed #17680 - Clarified when logging is configured. 2012-08-10 17:35:16 -04:00
Tim Graham eff6ba2f64 Fixed #17016 - Added examples for file uploads in views.
Thanks Tim Saylor for the draft patch and Aymeric Augustin and Claude Paroz for feedback.
2012-08-10 16:19:20 -04:00
Claude Paroz 576ec12f8e [py3] Replaced __nonzero__ by __bool__
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-08-08 15:02:31 +02:00
Aymeric Augustin c5ef65bcf3 [py3] Ported django.utils.encoding.
* Renamed smart_unicode to smart_text (but kept the old name under
  Python 2 for backwards compatibility).
* Renamed smart_str to smart_bytes.
* Re-introduced smart_str as an alias for smart_text under Python 3
  and smart_bytes under Python 2 (which is backwards compatible).
  Thus smart_str always returns a str objects.
* Used the new smart_str in a few places where both Python 2 and 3
  want a str.
2012-08-07 12:00:22 +02:00
Tim Graham 4f3a6b853a Fixed #17053 - Added a note about USE_THOUSAND_SEPARATOR setting to localizations docs.
Thanks shelldweller for the draft patch.
2012-08-06 16:15:09 -04:00
Tim Graham 84c3c9097d Merge pull request #153 from webjunkie/patch-1
Fixed #18110 -- Improve template cache tag documentation
2012-08-04 12:50:42 -07:00
Tim Graham 46589d0c6d Merge pull request #244 from mbrochh/master
Fixed small typo in class based view docs.
2012-08-04 12:29:42 -07:00
Tim Graham 865ff32b84 Fixed #16980 - Misc updates to the auth docs. Thanks Preston Holmes for the patch. 2012-08-04 15:24:40 -04:00
Simon Meers 10f979fd92 Fixed #18700 -- Added URL reversal for i18n set_language view. 2012-08-04 20:57:12 +10:00
Aymeric Augustin 5aec69ed29 Documented the trick used in 9908201d7f. 2012-08-03 15:40:29 +02:00
Martin Brochhaus 6f229d2d7a Update docs/topics/class-based-views/index.txt
Fixed a small typo:

"We can use create" should be "We can create"
2012-08-02 19:29:19 +08:00
Simon Meers d7816c563b Fixed #18472 - Added warning regarding set_language / i18n_patterns. 2012-08-02 20:45:55 +10:00
Tim Graham ebbc414d17 Fixed #16168 - Added note regarding type requirements when overridng ModelForm fields.
Thanks Pieter Swinkels for the patch.
2012-08-01 07:59:28 -04:00
Tim Graham 964979e8ec Fixed #18122 - Clarified section title regarding applying permissions to generic views. 2012-07-31 16:13:52 -04:00
Tim Graham 8d3e501502 Fixed #17131 - Added per object permission notes to docs.
Thanks dchandek for the suggestion and mateusgondim for the patch.
2012-07-30 18:10:21 -04:00
Aymeric Augustin ab6cd1c839 [py3] Updated dict-like data structures for Python 3.
The keys/items/values methods return iterators in Python 3, and the
iterkeys/items/values methods don't exist in Python 3. The behavior
under Python 2 is unchanged.
2012-07-25 22:58:48 +02:00
Florian Apolloner 7d06f975fe Fixed #18614 -- Added missing imports in code samples. 2012-07-25 22:32:53 +02:00
Florian Apolloner 4865274bc1 Merge pull request #224 from reclosedev/patch-1
Documentation: Fix link to uWSGI deployment
2012-07-25 13:18:11 -07:00
Alex Gaynor 98c7ad444c Merge pull request #228 from nklas/master
Documentation: Fixed a typo in docs/releases/1.4.txt
2012-07-25 13:06:58 -07:00
nklas c7ac44e64b Update docs/topics/signals.txt
Fixed a typo.
2012-07-25 13:20:26 +07:00
Ramiro Morales 50837434db Clarified default name of M2M relationship DB table. 2012-07-24 22:44:28 -03:00
Ramiro Morales f758bdab5e Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.
Previously, the flush was done before the test case execution and now
it is performed after it.

Other changes to the testing infrastructure include:

* TransactionTestCase now doesn't reset autoincrement sequences either
  (previous behavior can achieved by using `reset_sequences`.)
  With this, no implicit such reset is performed by any of the provided
  TestCase classes.

* New ordering of test cases: All unittest tes cases are run first and
  doctests are run at the end.

THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.

Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.

This also fixes #12408.
2012-07-24 17:24:16 -03:00
Aymeric Augustin ebc89a800a Fixed a broken link in the Python 3 docs.
Thanks ptone for the report.
2012-07-22 19:48:10 +02:00
Roman Haritonov cc65f4ec8d Documentation: Fix link to uWSGI deployment 2012-07-22 18:54:47 +04:00
Aymeric Augustin 00ace01411 [py3] Documented coding guidelines for Python 3. 2012-07-22 10:29:07 +02:00
Aymeric Augustin 8b01909841 [py3] Bundled six for Python 3 compatibility.
Refs #18363.
2012-07-22 09:29:44 +02:00
Anssi Kääriäinen aeda55e6bf Fixed #3881 -- skip saving session when response status is 500
Saving session data is somewhat likely to lead into error when the
status code is 500. It is guaranteed to lead into error if the reason
for the 500 code is query error on PostgreSQL.
2012-07-16 20:57:55 +03:00
Aymeric Augustin fb46f243b4 Fixed #18625 -- Removed old-style use of url tag
from the documentation.
2012-07-15 11:19:50 +02:00
Aymeric Augustin c13a98968e Fixed a misplaced Sphinx reference. 2012-07-14 12:32:39 +02:00
Preston Holmes 18b9dc4154 Fixed #18601 -- Specified that Python minimum version is 2.6.5
This is due to a bug in previous Python 2.6 versions related to
unicode keyword arguments.
2012-07-13 17:33:13 +02:00
Adrian Holovaty c9a1f9d1fc Merge pull request #197 from StefanKjartansson/master
Fixed typo in docs
2012-07-11 15:05:48 -07:00
mitnk fe443b11de fixed a typo in timezones docs. 2012-07-11 10:57:26 +08:00
Stefan Kjartansson 5664338e22 typo in "django/docs/topics/python3.txt" 2012-07-10 15:27:50 +00:00
Tim Graham 590de18add Fixed #18577 - Clarified middleware initialization.
Thanks Lukasz Balcerzak for the patch.
2012-07-08 19:26:53 -04:00
Aymeric Augustin d94cfdcfae Fixed #18589 -- Typo in generic CBV docs.
Thanks cpthomas for the report.
2012-07-07 17:42:04 +02:00
Tim Graham 5d81ad1af1 Fixed #17168 - Noted TransactionMiddleware only works with "default" database alias.
Thanks codeinthehole for the draft patch.
2012-06-30 10:25:51 -04:00
Claude Paroz 8a5d1a6b93 Updated obsolete links in the documentation 2012-06-28 10:49:07 +02:00
Tim Graham 1cf8287e3a Fixed #18369 - Fixed argument name in render() function; thanks qsolo825@ for the report. 2012-06-27 17:40:29 -04:00
Claude Paroz ada961b0d2 Fixed #18527 -- Removed superfluous backslash in CBV docs
Thanks ramilzay at gmail.com for the report.
2012-06-27 18:13:14 +02:00
Gabriel Grant d69f1d71c4 Fixed typo in JSONResponseMixin example. 2012-06-25 08:48:32 +02:00
Claude Paroz 19a810b18c Fixed #14917 -- Hinted that view should redirect after form post success 2012-06-23 18:47:52 +02:00
Dmitry Medvinsky d4da08375b Fixed #18454 -- Added ability to pass a list of signals to `receiver`.
Added ability to use receiver decorator in the following way:

    @receiver([post_save, post_delete], sender=MyModel)
    def signals_receiver(sender, **kwargs):
        ...
2012-06-23 16:31:16 +02:00
Bojan Mihelac 946d3d9f84 Fixed url translation docs.
``include`` calls shouldn't have a $ sign at the end of the url pattern.
2012-06-23 16:14:56 +02:00
Gabe Jackson ffa6d95f65 Fixed #18154 -- Documentation on closing File objects and best practices 2012-06-19 09:56:10 +12:00
Julian Bez 3c0877938f Fixed #18110 -- Improve template cache tag documentation 2012-06-14 17:42:55 +03:00
Jannis Leidel c4c7fbcc0d Fixed #18451 -- Vastly improved class based view documentation.
Many thanks to Daniel Greenfeld, James Aylett, Marc Tamlyn, Simon Williams, Danilo Bargen and Luke Plant for their work on this.
2012-06-11 10:40:23 +02:00
Claude Paroz b0d8085c67 Added note about including fixtures hashing algorithm
Refs #18157.
2012-06-09 21:14:13 +02:00
Claude Paroz 17d6cd9029 Fixed #18157 -- Documented that setting PASSWORD_HASHERS can speed up tests 2012-06-09 20:41:46 +02:00
Claude Paroz 514e827022 Fixed pagination example wrt new next_page_number behavior 2012-06-09 18:07:30 +02:00
Claude Paroz fc40a6504b Fixed #17159 -- Validated returned number of next|previous_page_number
Thanks mehta.apurva at gmail.com for the report and the initial patch
and neaf for the complete patch.
2012-06-09 17:55:24 +02:00
Audrey Roy 7ab6e32843 Revised the text in the 'Processing the data from a form' section. 2012-06-08 12:13:52 +02:00
Audrey Roy 3c05b500a5 Revised the text in the 'Using a form in a view' section. 2012-06-08 12:03:52 +02:00
Aymeric Augustin 06ea10e1f1 Fixed #18125 -- Explained caveat with filters
Thanks ebrelsford AT gmail.com and oinopion.
2012-06-08 10:25:42 +02:00
Aymeric Augustin 33999d9871 Fixed #18445 -- Added a links in the docs.
Thanks Audrey Roy for the patch.
2012-06-07 22:11:24 +02:00
Claude Paroz 5e6ded2e58 Fixed #18363 -- Added Python 3 compatibility layer.
Thanks Vinay Sajip for the support of his django3 branch
and Alex Gaynor, kezabelle, YorikSar for the review.
2012-06-07 18:36:53 +02:00
Claude Paroz 4a103086d5 Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
Thanks Vinay Sajip for the support of his django3 branch and
Jannis Leidel for the review.
2012-06-07 18:08:47 +02:00
Aymeric Augustin c28e700c7e Removed references to changes made in 1.2.
Thanks Florian Apolloner for the patch.
2012-06-07 15:02:35 +02:00
Aymeric Augustin 10a9c260fc Merge pull request #117 from juanriaza/master
Fixed #18380 -- Improved installation instructions for MySQLdb.
2012-06-07 04:40:38 -07:00
Juan Riaza bac6a68064 Fixed #18380 -- Improve installation instructions for MySQLdb 2012-06-07 13:35:04 +02:00
Aymeric Augustin 875c762517 Fixed #16916 -- Documented default headers for the test client.
Thanks sailorfred AT yahoo.com for the report and raulcd
for the initial version of the patch.
2012-06-07 12:51:48 +02:00
Aymeric Augustin 17f3e9258e Fixed #18397 -- Avoided referencing lawrence.com.
This commit includes multiple small related changes, see the ticket
for a full discussion.
2012-06-07 11:50:20 +02:00
Jacob Kaplan-Moss 7edf231d46 Replaced documentation snippets using "gender" with less sensitive examples. 2012-06-06 13:52:53 +02:00
Luke Plant 0199bdc0b4 Rewrote security.txt SSL docs, noting SECURE_PROXY_SSL_HEADER. 2012-06-04 21:41:05 +01:00
Adrian Holovaty 6799ffad9a Merge pull request #99 from danielroseman/master
Docs: "Form in a view" example doesn't use RequestContext
2012-06-04 13:13:14 -07:00
Daniel Roseman 5c59e43aef Use render shortcut in form example. 2012-05-31 15:33:45 +01:00
Aymeric Augustin e73838b6dd Fixed #17371 -- Made the test client more flexible
The OPTIONS, PUT and DELETE methods no longer apply arbitrary
data encoding (in the query string or in the request body).
2012-05-25 19:03:15 +02:00
Claude Paroz 6219591f2e Fixed #18244 -- Documented that formset.has_changed is a 1.4 addition. 2012-05-22 13:56:03 +02:00
Claude Paroz cafa5bf4f4 Replaced print statement by print function in new install instructions. 2012-05-22 13:22:45 +02:00
Carl Meyer 6ed7d40727 Fixed #18115 - added warning about overlaid install.
Setup.py now warns if it detects that Django is being installed over top
of a previous installation that was never removed. This should only
happen when installing with ``python setup.py install``, as pip
automatically uninstalls before installing a new version and
easy_install installs as an egg directory.

Also generally updated the installation doc.
2012-05-21 17:28:58 -06:00
Aymeric Augustin 4b58e94f27 Followed a best practice in the time zones docs.
Prevented localize from swallowing non existent or ambiguous
datetimes.
2012-05-19 23:33:38 +02:00
Stratos Moros 5d80d30a23 remove mention of djangoproject.com from cbv topic
The class based views topic mentions that the djangoproject.com weblog
is built using the date-based generic views, but looking at the code,
it actually uses the deprecated pre-1.3 function based generic views.
2012-05-18 13:25:15 +03:00
Adrian Holovaty aa757ac22d Merge pull request #43 from techtonik/patch-1
Fixed #18267 -- document `settings.configured` property.
2012-05-16 08:12:48 -07:00