Commit Graph

5450 Commits

Author SHA1 Message Date
Tim Graham b5b63079bd Fixed #19712 - Clarified admindocs regarding which attributes appear.
Thanks Daniele Procida for the report.
2013-05-16 08:09:20 -04:00
Tim Graham da9d626be0 Merge pull request #1073 from mjtamlyn/import_by_path-docs-fix
Made the example usage of import_by_path less confusing.
2013-05-16 04:14:33 -07:00
Marc Tamlyn cde820bd31 Make the example usage of import_by_path less confusing.
Using import_by_path to import import_by_path is a really odd use case
and makes the code example difficult to read.
2013-05-16 10:11:46 +02:00
Stefan hr Berder 746d3166d6 small typo, example pk=27 but description pk=24 2013-05-16 15:21:18 +08:00
Aymeric Augustin c8dcee9a42 Improved the timezone middleware example slightly.
This change avoids having the timezone leak from a request to the next.
2013-05-15 16:43:39 +02:00
Tim Graham 84d8b247d2 Fixed #20165 - Updated testing example to use django.test.TestCase.
Thanks Lorin Hochstein.
2013-05-15 06:48:17 -04:00
Daniel Lindsley 33793f7c3e Fixed #19934 - Use of Pillow is now preferred over PIL.
This starts the deprecation period for PIL (support to end in 1.8).
2013-05-14 19:32:04 -07:00
Donald Stufft c792c83cad Merge pull request #1062 from dstufft/switch-bcrypt-recommendations
Recommend using the bcrypt library instead of py-bcrypt
2013-05-14 16:20:32 -07:00
Tim Graham 8035533557 Merge pull request #1039 from cannona/master
Clarified what unique_for_date considers
2013-05-14 16:01:24 -07:00
Wilfred Hughes d258cce482 Fixing a minor spelling mistake in the queryset documentation 2013-05-14 11:40:33 +01:00
Donald Stufft 8f0a4665d6 Recommend using the bcrypt library instead of py-bcrypt
* py-bcrypt has not been updated in some time
* py-bcrypt does not support Python3
* py3k-bcrypt, a port of py-bcrypt to python3 is not compatible
  with Django
* bcrypt is supported on all versions of Python that Django
  supports
2013-05-13 23:49:00 -04:00
Tim Graham 1708c8afb6 Merge pull request #1053 from makto/patch-1
Fixed #20394 - Clarified argument of get_user in docs
2013-05-13 11:02:30 -07:00
Tim Graham 897e4eab65 Fixed #20398 - Added language selection code to example in documentation
Thanks ggbaker for the suggestion and Simeon Visser for the patch.
2013-05-13 13:43:28 -04:00
Tim Graham b1f74670cc Merge pull request #1058 from svisser/ticket_20397
Fixed #20397 - Cleaned up issue with quotation marks in documentation
2013-05-12 17:16:04 -07:00
Ramiro Morales 956973ca6c Updated test failure example. 2013-05-12 17:29:34 -03:00
Simeon Visser b9efc03e6d Fixed #20397 - Cleaned up issue with quotation marks in documentation 2013-05-12 20:24:48 +01:00
Tim Graham 2c62a509de Fixed #20136 - Fixed and expanded the docs for loaddata and model signals.
Thanks brandon@ and Anssi for the report.
2013-05-11 19:34:02 -04:00
Tim Graham 679a2ac843 Fixed #20249 - Removed a "feature" in the tutorial that doesn't actually work.
Thanks bmispelon for the report and draft patch.
2013-05-11 19:08:57 -04:00
zhongqi 1172bef998 Update customizing.txt
The origin statement "which could be ... or whatever" **misguides** many newbies like me.

In fact, the ``login`` function in ``contrib.auth`` stores ``user.pk`` in session, then ``get_user`` function in ``contrib.auth`` gets ``user.pk`` in session and then passes it to your custom ``get_user`` as ``user_id``.

Which means, ``user_id`` prarameter in your custom ``get_user`` has to be the primary key of ``User`` object, too.
2013-05-11 15:53:54 +08:00
Carl Meyer 9012833af8 Fixed #17365, #17366, #18727 -- Switched to discovery 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.
2013-05-10 23:08:45 -04:00
Jannis Leidel 92351c74c1 Updated my bio. 2013-05-10 15:51:14 -07:00
Aymeric Augustin bdd285723f Fixed #20385 -- Typo in files docs. 2013-05-10 13:23:57 +02:00
Luke Plant f026a519ae Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut
This also updates all dependent functionality, including modelform_factory
 and modelformset_factory, and the generic views `ModelFormMixin`,
 `CreateView` and `UpdateView` which gain a new `fields` attribute.
2013-05-09 16:44:36 +01:00
Aymeric Augustin 3d595c3bc3 Fixed #20215 -- Disabled persistent connections by default. 2013-05-09 15:42:14 +02:00
Aymeric Augustin 7476d96f83 Marked tests of BinaryFields as expected failures on MySQL and Python 3.
Current ports of MySQLdb are very buggy in this area.
2013-05-08 15:48:39 +02:00
Aymeric Augustin e81e319f15 Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.
Made a few minor compatibility adjustments.
2013-05-08 13:05:09 +02:00
Aymeric Augustin 1fff8daf88 Fixed test failures on MySQL.
Some tests failed when the time zone definitions were loaded in MySQL
and pytz wasn't installed. This setup isn't supported.
2013-05-08 13:03:36 +02:00
Carl Meyer bc46f67fa8 Fixed Sphinx error in tutorial 1. 2013-05-07 18:18:42 -06:00
Carl Meyer 6c6c67f5a6 Fixed inconsistent punctuation in tutorial 5. 2013-05-07 17:07:29 -06:00
Carl Meyer d89b421352 Python 2.5 is not relevant to master. 2013-05-07 17:05:37 -06:00
Mike Fogel 1ad83145df Remove outdated ForeignKey manager documentation. 2013-05-07 10:06:15 -04:00
Tim Graham bc02a963db Fixed #20177 - Corrected docs for django.test.utils.setup_test_environment.
Thanks vlad.london.uk@ for the report.
2013-05-06 13:55:02 -04:00
Tim Graham e886808994 Fixed #20274 - Added some clarifying section headings in the test docs. 2013-05-06 13:45:24 -04:00
Tim Graham 86d3079d57 Fixed #20305 - Added include for polls/static to MANIFEST.in in tutorial.
Thanks monuszko for the report.
2013-05-06 06:19:52 -04:00
Christopher Allen-Poole a96bff179a Found a mistake in SQL documentation 2013-05-05 11:01:45 -04:00
Aaron Cannon 291250f7b6 Added clarification to the docs, pointing out that unique_for_date only considers the date portion of DateTime fields. 2013-05-03 08:46:53 -05:00
Daniel Lindsley d48b7230a8 Added myself to the committers list. 2013-05-03 00:46:51 -07:00
Michael Manfre 6bdeed1b81 Fixed #20338 - Document FQDN behavior with ALLOWED_HOSTS 2013-05-01 12:13:44 -06:00
Florian Apolloner a5becad909 Fixed #19252 -- Added support for wheel packages.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2013-05-01 13:46:06 +02:00
Aymeric Augustin ce45240df4 Fixed #20336 -- Removed obsolete paragraph from the docs.
Thanks Baptiste Mispelon.
2013-04-30 21:40:16 +02:00
Ana Krivokapic cee96b87c0 Fix two typos in database transactions docs 2013-04-30 18:38:59 +02:00
Aymeric Augustin 1267d2d9bc Fixed #20330 -- Normalized spelling of "web server".
Thanks Baptiste Mispelon for the report.
2013-04-29 19:40:43 +02:00
Thomas Thurman b47b0211f5 Corrected "it's" to "its" when used possessively.
Fixed #20327.
2013-04-29 17:21:37 +02:00
Aymeric Augustin f7f69cf7dd Pointed to the docs version switcher in tutorial 1.
Refs #20324. Thanks dwisehart for the suggestion.
2013-04-28 15:10:59 +02:00
Claude Paroz 8f7276b782 Updated Transifex links to the Django project
Translations for the Django framework are now hosted on the
django-core Transifex project, and the django project is only
dedicated to a team-only hub project.
2013-04-25 10:35:51 +02:00
Evan Carmi 9e80663c95 Fix CharField typo in legacy-databases.txt docs
The example Person model in the legacy databases HowTo had a typo referring to ChaField instead of Charfield
2013-04-24 15:02:19 -03:00
Jannis Leidel db394e6ab2 Fixed a rST bug in the README template in the reusable apps docs. 2013-04-24 09:41:06 +02:00
Jannis Leidel 949b4e9458 Fixed the reusable apps docs to use a rst file extension for the README and follow PEP8 a bit more. 2013-04-24 09:27:03 +02:00
Thomas Thurman f17aa998be Fixed #20307 -- Word repeated in tutorial.
Replaced "the the" in the tutorial with "the".
2013-04-23 23:12:47 -04:00
Baptiste Mispelon 73c26f0c95 Fixed #20270 -- Fixed error in AjaxResponseMixin documentation 2013-04-22 20:00:50 +02:00
Claude Paroz 7cc3acbb70 Fixed #19211 -- Adapted tutorial for Python 3 2013-04-22 19:51:42 +02:00
jktravis 70d3adf9f2 Added 'polls' sub directory under static and reorganized to more accurately represent the project; compared using 'tree' command. 2013-04-21 09:52:02 -04:00
Juan Catalano 78c842a323 Adapted uses of versionchanged/versionadded to the new form.
Refs #20104.
2013-04-20 17:18:35 +02:00
Juan Catalano 1ddeeb5b8e Removed unused imports. 2013-04-20 17:18:29 +02:00
Juan Catalano 4e25198ec2 Fixed #20104 -- Changed VersionDirective in order to avoid ambiguity.
As explained in ticket #20104, the use of versionchanged/versionadded
was confusing.

To solve this ambiguity these directives no longer accept a second
argument but now they only receive the version number (1st arg) and then
a content with the proper comment.
2013-04-20 17:18:21 +02:00
Claude Paroz 3be8165b62 Updated tutorial INSTALLED_APPS section (removed contrib.sites) 2013-04-20 11:34:35 +02:00
Aymeric Augustin bfe25de429 Explained the pattern for special methods compatibility. 2013-04-19 09:53:50 +02:00
Claude Paroz 5306285ce2 Complemented documentation following commit be9ae693c
Refs #17840. Thanks Carl Meyer for noticing the omission.
2013-04-18 20:38:07 +02:00
Tim Graham 9f7b277d2e Fixed #20285 - Added missing commas in translation docs.
Thanks cody.j.b.scott@
2013-04-18 13:44:20 -04:00
Tim Graham f71fdf83a8 Fixed #20286 - Typo in static files docs.
Thanks bmispelon.
2013-04-18 13:41:55 -04:00
Aymeric Augustin 93c1576f17 Fixed #20282 -- Typo in WSGI docs. 2013-04-18 11:47:25 +02:00
Claude Paroz 58b3a974fc Fixed #20266 -- Updated view example in CBV introduction
Thanks jim at hellolocals.com for the report.
2013-04-16 08:59:55 +02:00
Simon Charette b0bbccf630 Fixed #20262 -- Replaced a reference to the wrong model in the CBV doc.
Thanks to mossplix for the review and bmispelon for the review.
2013-04-15 16:23:35 -04:00
Claude Paroz bfb2504402 Added a tip about --layer param of ogrinspect for databases
Refs #20260.
2013-04-15 18:28:20 +02:00
Simon Charette 1de63cccb1 Fixed #20263 -- Corrected wording in the formset documentation.
Thanks to feraudyh at yahoo.com for the report.
2013-04-15 12:19:17 -04:00
Baptiste Mispelon 9ac4dbd7b5 Fixed #4592: Made CheckboxSelectMultiple more like RadioSelect
I refactored RadioSelect and CheckboxSelectMultiple to
make them inherit from a base class, allowing them to share
the behavior of being able to iterate over their subwidgets.

Thanks to Matt McClanahan for the initial patch and to
Claude Paroz for the review.
2013-04-13 16:37:27 +02:00
Baptiste Mispelon c4186c2fec Fixed #4117: Apply id attribute to the outer <ul> of RadioSelect 2013-04-13 12:23:25 +02:00
Baptiste Mispelon 844fbc85c1 Fixed #19874: Apply id attribute to the outer <ul> of CheckboxSelectMultiple 2013-04-13 11:09:47 +02:00
Tim Graham aad5661c6c Fixed #20247 - Added some missing paths in the tutorial.
Thanks gsavix for the suggestion and patch.
2013-04-12 19:22:02 -04:00
Claude Paroz d58e985aaa Fixed #20252 -- Mentionned geojson Spatialite support from 1.5
Thanks burton449geo at gmail.com for the report.
2013-04-12 20:59:56 +02:00
Tim Graham 8fc68af9c0 Fixed #20248 - Clarified manage.py vs. django-admin.py 2013-04-12 06:10:26 -04:00
Baptiste Mispelon ab686022f8 Fixed #20211: Document backwards-incompatible change in BoundField.label_tag
Also cleaned up label escaping and consolidated the test suite regarding
label_tag.
2013-04-12 10:17:17 +02:00
Claude Paroz 0f99246b6f Documented BoundField.label_tag 2013-04-12 10:17:17 +02:00
Tim Graham 712a792713 Fixed #20243 - Clarified when RelatedManager.remove() exists. 2013-04-11 14:13:09 -04:00
Andrew Badr 408da7b457 remove confusing phrase from DecimalField docs
The phrase "if it exists" was used in reference to the `decimal_places`
argument to `DecimalField`, when in fact that field is required.
2013-04-11 16:27:14 +03:00
Tim Graham c852d45681 Fixed #20204 - Consistent usage of url() in URL dispatcher documentation
Thanks Baptiste Mispelon for the patch and dave.lampton@ for the suggestion.
2013-04-10 20:38:25 -04:00
Julien Phalip 68d6c52ed6 Turned the triage attributes to actual sections so they can be more easily linked to in the documentation. 2013-04-10 17:11:26 -07:00
Preston Holmes 18255779e9 Added some further guidance to "accepted" triage stage
Now that DDN is gone, I felt it was worth some extra language
about what "accepted" means, and qualify what it means to be "safe"
to start writing a patch.
2013-04-09 22:39:36 -07:00
Aymeric Augustin 4a7292df3b Removed references to the DDN triage state.
Rephrased "How can I help with triaging?" a bit to reflect the current
practice.
2013-04-08 20:33:52 +02:00
Claude Paroz 975c5afdb5 Added release note about percent literals in cursor.execute
Thanks Aymeric Augustin for noticing the omission and Tim Graham
for the text review.
Fixes #9055 (again).
2013-04-05 14:18:34 +02:00
Andrew Brown 17be12df47 Removed a trailing space in the template name on line 174.
This trailing space may seem innocuous, but can be easily copied-and-pasted from the docs.
This can lead to bizarre File Not Found errors where the checked paths look correct, but actually aren't because
the trailing space is hard to see in an error message.
2013-04-05 01:52:12 -04:00
Jacob Kaplan-Moss ce23e33399 Removed instructions about download_url from release process notes.
This is no longer something that has to happen now that 5c771da3 is in.
2013-04-04 15:03:45 -05:00
Baptiste Mispelon 2c27300f34 Fix #20195: wrong reference in session settings documentation. 2013-04-04 18:12:12 +02:00
Ramiro Morales f2d3c4b0ca Added a dedication to Malcolm to release notes. 2013-04-02 14:15:37 -03:00
Tim Graham b9dbd1dd2f Fixed #19748 - Documented django.utils.module_loading.import_by_path 2013-04-02 12:59:43 -04:00
Claude Paroz 2bcbca3451 Updated some 'Dive Into Python' links 2013-04-01 14:04:41 +02:00
Tim Graham 4a1d425cfe Fixed #8649 - Documented a caveat about dynamically adjusting formsets. 2013-03-31 04:34:28 -04:00
Tim Graham ac4d82b94a Fixed #9913 - Clarified User.is_authenticated docs.
Thanks rshea for the draft text.
2013-03-31 03:59:34 -04:00
Tim Graham c119d0f152 Fixed #20168 - Generalized a PostgreSQL specific database query in the docs.
Thanks Russ for the suggestion.
2013-03-31 03:40:44 -04:00
Tim Graham b5e1e2ec03 Fixed some markup in formtools docs. 2013-03-30 19:49:31 -04:00
Julien Phalip ffc8e2e0ae Fixes #20162 -- Added a note in the documentation for `static.serve()` about the need for updating the system's map files when incorrect content types are returned. Many thanks to Simon Charette and Claude Paroz for their feedback. 2013-03-30 16:23:27 -07:00
Tim Graham 91d06ea719 Fixed #19492 - Added a link to the uWSGI/Django tutorial. 2013-03-30 16:21:59 -04:00
Tim Graham 33503600b5 Fixed #18277 - Clarified startproject documentation. 2013-03-30 08:36:31 -04:00
Tim Graham 72b1522a2f Merge pull request #963 from richardcornish/master
Updated bios of committers
2013-03-30 04:48:31 -07:00
Tim Graham 6c730da1f6 Fixed #19897 - Updated static files howto.
Thanks Jan Murre, Reinout van Rees and Wim Feijen,
plus Remco Wendt for reviewing.
2013-03-29 19:15:19 -04:00
Tim Graham c32fc79aa1 Fixed #19582 - Added a static files tutorial.
Thanks James Pic.
2013-03-29 19:03:53 -04:00
Tim Graham 9916e69bf1 Fixed #15379 - Added "how to cite Django" to FAQ.
Thanks Russ and Susan Tan.
2013-03-29 16:48:07 -04:00
Nimesh Ghelani 485c024567 Fixed #20150 -- Fixed an error in manager doc example 2013-03-30 01:01:56 +05:30
Baptiste Mispelon 391ec5a085 Fixed #20160 -- Erronous reference to `module_name` in admin doc.
Ref #19689.
2013-03-29 14:31:29 -04:00
Simon Charette 6293eaa062 Fixed #20159 -- Mispelled attribute in multi-db documentation example.
Thanks to sane4ka.sh at gmail for the report!
2013-03-29 14:16:30 -04:00