summaryrefslogtreecommitdiff
path: root/docs/topics
AgeCommit message (Collapse)Author
2011-09-18Fixed #13211 -- Added the `Group` API reference and a `Permission` API ↵Julien Phalip
example to the `contrib.auth` documentation. Thanks to b14ck for the report and to jpaulett and CrazyGir for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16863 -- Corrected ReST markup to avoid errors building docs.Carl Meyer
Although directives such as "note" and "warning" will accept content immediately following the directive, this is technically where arguments to the directive should go (see http://sphinx.pocoo.org/rest.html#directives). Putting the content there means that any lines beginning with an inline text role (e.g. ":setting:`DEBUG`") will be mis-interpreted as an option block for the directive. To avoid this error, there should always be a blank line between the directive start and the directive content. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16568 -- Added RequireDebugFalse filter to prevent sending 500 error ↵Carl Meyer
emails when DEBUG is True in projects with no explicit LOGGING setting. Thanks to Andreas Pelme for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16094 -- Added missing colon in custom permissions docs.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-13Fixed #16815 -- Rectified the code example for hidden_fields and ↵Julien Phalip
visible_fields in the forms documentation. Thanks, joonas. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16742 -- Provided code examples in the models documentation for ↵Julien Phalip
accessing extra fields on many-to-many relationships. Many thanks to aj for the suggestion and to Nick Lang for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16334: Make it quite clear that cache_page's 'cache' argument refers ↵James Bennett
to the name of a cache in the CACHES setting. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16094: Added clear example of how to refer to custom permissions.James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16109: Corrected an inconsistency in URLconf examples for matching a ↵James Bennett
numeric month. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16293: Document a way to return dicts with column names from a DB cursor.James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #16079: Clarified (for real this time) how handler404 and handler500 ↵James Bennett
work, and that they only work in a root URLconf. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Removed the deprecated-since-1.2 "supports_object_permissions" and ↵Alex Gaynor
"supports_anonymous_user" flags on authentication backends. If you have an authenication backend it now *must* suport these. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16280. Document that both args and kwargs cannot be passed to reverse ↵Alex Gaynor
at the same time. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #16793. Added more cross referencing to the load tag's documentation. ↵Alex Gaynor
Thanks to bluejeansummer for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Fixed #11404. Added ``FormSet.has_changed``, for consistancy with ↵Alex Gaynor
``Form.has_changed``. Thanks to michelts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Make ``Formset.__getitem__`` O(1), rather than O(n). If you override ↵Alex Gaynor
``__iter__`` you now need to also override ``__getitem__`` for consistant behavior. Thanks to Carl and Russ for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-10Added protection against spoofing of X_FORWARDED_HOST headers. A security ↵Russell Keith-Magee
announcement will be made shortly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #16786 -- Minor cleanups in the memcached section of the caching topic ↵Gabriel Hurley
guide. Thanks to jamesp for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #7596. Added Model.objects.bulk_create, and make use of it in several ↵Alex Gaynor
places. This provides a performance benefit when inserting multiple objects. THanks to Russ for the review, and Simon Meers for the MySQl implementation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #16384: warn against accessing request.POST/REQUEST in middleware.Jacob Kaplan-Moss
Thanks, Tom Christie. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-08Fixed #16516 -- Relaxed the blocktrans rendering a little by falling back to ↵Jannis Leidel
the default language if resolving one of the arguments fails, raising a KeyError. Thanks, Claude Paroz and Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-04Converted links to external topics so they use intersphinx extension markup.Ramiro Morales
This allows to make these links more resilent to changes in the target URLs. Thanks Jannis for the report and Aymeric Augustin for the patch. Fixes #16586. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-30Fixed #16717 -- Added ability to store result of trans template tag in ↵Jannis Leidel
context variable. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Fixed documentation about use of salt parameter in signing functions.Malcolm Tredinnick
Fixes #16369. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-26Added a bit to 'Saving ManyToMany Fields' explicitly explaining how to add ↵Adrian Holovaty
multiple relations in one statement git-svn-id: http://code.djangoproject.com/svn/django/trunk@16689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-23Fixed #15499 -- Ensure that cache control headers don't try to set public ↵Russell Keith-Magee
and private as a result of multiple calls to patch_cache_control with different arguments. Thanks to AndiDog for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-23Add the ability to do unordered comparisons in assertQuerysetEqual.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16654 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-23Fixed #15838 -- Promoted assertFieldOutput to a general test utility. Thanks ↵Russell Keith-Magee
to Ramiro Morales for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16653 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-22Minor Debian/Ubuntu install instruction update.Malcolm Tredinnick
This is all a bit of a mess (and fragile and mostly their own fault), but this at least gives people a clue. Fixes #16287. Patch from bpeschier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-22Made documentation of ManyToManyField placement clearer (kind of).Malcolm Tredinnick
Inspired by ticket #16661. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-21Fixed #16610 - Added more docs for template contexts in contrib.auth views; ↵Timo Graham
thanks Elvard! git-svn-id: http://code.djangoproject.com/svn/django/trunk@16632 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-20Fixed #16654 - Syntax error in reverse() example; thanks jedie.Timo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-20Fixed #16595 - Add pop() to session docs; thanks wilfred.Timo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-18Fixed #16608 -- Clarified the description of the destroy_test_db method and ↵Gabriel Hurley
cleaned up various other reST/Sphinx-related bits in the testing docs. Thanks to Stan for the report and Julien for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-18Fixed #16467 -- Restored a previously correct example which was broken in ↵Gabriel Hurley
[16564]. Thanks to dmclain for pointing out that the original example was correct. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #16621 -- Fixed lots of typos in the docs. Thanks, Bernhard Essl.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #16627 -- Fixed docs build warning.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #14503 -- Unified multiple implementations of test cases assert* ↵Ramiro Morales
methods that verify a given exception is raised by a callable throughout the Django test suite. Replaced them with a new assertRaisesMessage method of a new SimpleTestCase, a lightweight subclass of unittest.TestCase. Both are also available for usage in user tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #4617 -- Added `raise_exception` option to `permission_required` ↵Jannis Leidel
decorator to be able to raise a PermissionDenied exception instead of redirecting to the login page. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #9847 -- Added 403 response handler. Many thanks to kgrandis, ↵Jannis Leidel
adamnelson, vkryachko, fvox13 and Chris Beaven. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-06Fixed #16430 - Stronger wording for CSRF protection in `modifying upload ↵Timo Graham
handlers on the fly`; thanks tomchristie. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-06Fixed #16513 - Add forms import to example; thanks teraom.Timo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-06Fixed #16528 - Documented test runner returns 1, regardless of the number of ↵Timo Graham
test failures; thanks teraom. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-29Fixed #16467 -- Corrected formset code example. Thanks, teraom.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-29Fixes #16482 -- Fixes typo in security docs. Thanks, charettes.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-28Fixes #16532 -- Clearer explanation of how the test client expects HTTP ↵Chris Beaven
headers to be passed. Thanks for the patch, Ricardo Bánffy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-17Grammar fixes and content tweaks to XSS section of security docs.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-10Fixed #15715 -- added non-trivial decorator example to CBV docs. Thanks ↵Simon Meers
toofishes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-10Fixed #16440 -- minor ungettext documentation issue, thanks Bradley Ayers.Simon Meers
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16532 bcc190cf-cafb-0310-a4f2-bffc1f526a37