summaryrefslogtreecommitdiff
path: root/django/views/defaults.py
AgeCommit message (Collapse)Author
2019-06-07Fixed #30521 -- Fixed invalid HTML in default error pages.Alexandre Varas
2019-01-17Refs #27829 -- Removed settings.DEFAULT_CONTENT_TYPE per deprecation timeline.Tim Graham
2019-01-16Refs #30102 -- Added comment on use of Template without placeholders in ↵Carlton Gibson
page_not_found() view.
2019-01-03Fixed #30070, CVE-2019-3498 -- Fixed content spoofing possiblity in the ↵Tom Hacohen
default 404 page. Co-Authored-By: Tim Graham <timograham@gmail.com>
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-02-27Imported django.http classes instead of django.http.Asif Saifuddin Auvi
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2016-05-03Fixed #26567 -- Updated references to obsolete RFC2616.Vasiliy Faronov
Didn't touch comments where it wasn't obvious that the code adhered to the newer standard.
2016-01-14Fixed #25697 -- Made default error views error when passed a nonexistent ↵Iacopo Spalletti
template_name.
2015-05-11Fixed #24733 -- Passed the triggering exception to 40x error handlersClaude Paroz
Thanks Tim Graham for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-12Deprecated passing a Context to a generic Template.render.Aymeric Augustin
A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
2014-03-21Removed django.views.defaults.shortcut and django.conf.urls.shortcut per ↵Tim Graham
deprecation timeline.
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2013-08-04Fixed #20822 -- Set content type of default error pages to 'text/html'.Aymeric Augustin
Thanks Jimmy Song for the patch.
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-05-25Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation.Preston Holmes
SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
2013-03-14Deprecated django.views.defaults.shortcut.Aymeric Augustin
2012-09-30Fixed #18807 -- Made 404.html and 500.html optionalClaude Paroz
Thanks Aymeric Augustin for the report and Jannis Leidel for the review.
2012-06-26Add reST role to templates named in some view docs.Ben Spaulding
This makes the templates link up correctly in the admindocs.
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
2010-10-28Fixed #14565 - No csrf_token on 404 page.Luke Plant
This solution doesn't have the negative side-effects of [14356]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Reverted changeset [14356]Luke Plant
That fix for #14565 introduced test failures. A better fix will follow shortly. Refs #14565 git-svn-id: http://code.djangoproject.com/svn/django/trunk@14376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-26Fixed #14565 - No csrf_token on 404 pagesLuke Plant
Thanks to gvangool for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-10Moved the bulk of the shortcut() function in django/views/defaults.py to a ↵Adrian Holovaty
new module, django/contrib/contenttypes/views.py. As a result, django/views/defaults.py no longer relies on django.contrib.contenttypes. Of course, the shortcut() function is still available in the former module, for backwards compatibility. See the new FutureBackwardsIncompatibleChanges wiki page. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #7127 -- Fixed incorrect docstring for page_not_found() view. Thanks, ↵Adrian Holovaty
kcarnold and Simon Greenhill git-svn-id: http://code.djangoproject.com/svn/django/trunk@7650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-03Fixed #4685 -- 'View on site' now works for https URLs. Thanks, ↵Adrian Holovaty
cbrand@redback.com, treborhudson@gmail.com, Jeff Hilyard git-svn-id: http://code.djangoproject.com/svn/django/trunk@5594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22Backed out the changes in [5482] for a bit whilst some more investigation intoMalcolm Tredinnick
side-effects is done. Refs #4565. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4565 -- Changed template rendering to use iterators, rather thanMalcolm Tredinnick
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26Added a comment to the 404/500 views so that people with DEBUG=False and no ↵Jacob Kaplan-Moss
404/500 template will get a clue about which template to create. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-22Changed default 500 view NOT to use RequestContext, to lessen the chance ↵Adrian Holovaty
that the 500 view would raise an error in itself git-svn-id: http://code.djangoproject.com/svn/django/trunk@3193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #688 -- Changed default 404 and 500 views to use RequestContextAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-06Made QuerySet slicing return IndexError instead of DoesNotExist (and related ↵Luke Plant
changes). git-svn-id: http://code.djangoproject.com/svn/django/trunk@2859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22Changed views.defaults page_not_found and server_error to pass in optional ↵Adrian Holovaty
template_name override git-svn-id: http://code.djangoproject.com/svn/django/trunk@1350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-11BACKWARDS-INCOMPATIBLE CHANGE -- Moved flatpages and redirects to standalone ↵Adrian Holovaty
apps in django.contrib that are NOT installed by default. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for full migration information. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-26Fixed shortcut redirect handlerJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-17Fixed #634 -- Changed shortcut view to accept get_absolute_url()s that ↵Adrian Holovaty
return URLs starting with http. Thanks, Hugo git-svn-id: http://code.djangoproject.com/svn/django/trunk@903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Fixed #626 -- Moved template modules to django.core.template package. ↵Adrian Holovaty
django.core.template_loader is deprecated, in favor of django.core.template.loader. git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to ↵Adrian Holovaty
use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-26Fixed #163 -- Added 'pk' database API option, which is a shorthand for ↵Adrian Holovaty
(primary_key)__exact git-svn-id: http://code.djangoproject.com/svn/django/trunk@316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-20Changed django.views.defaults to use template.Context instead of ↵Adrian Holovaty
core.extensions.DjangoContext git-svn-id: http://code.djangoproject.com/svn/django/trunk@233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-15Renamed CMSRequest to DjangoRequest, and CMSContext to DjangoContext. Old ↵Adrian Holovaty
code will still work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@57 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-14Changed many-to-many API to be get_FOO_list instead of get_FOOsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-13Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37