summaryrefslogtreecommitdiff
path: root/django/views
AgeCommit message (Collapse)Author
2005-12-09Fixed #992 -- Fixed bug in archive_month generic view leaving out the last ↵Adrian Holovaty
day of the month. Thanks, ubernostrum git-svn-id: http://code.djangoproject.com/svn/django/trunk@1571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-07Added 'It worked' page, in a empty_urlconf() view in views/debug.py. It's ↵Adrian Holovaty
called if the URLconf is empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06fix for a problem with djangojs missing for some languages. Thx OlivierGeorg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-06Debug 400 page now displays special error message if your URLconf is empty.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04limit packages in javascript_catalog to settings.INSTALLED_APPS and ↵Georg Bauer
'django.conf' git-svn-id: http://code.djangoproject.com/svn/django/trunk@1531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-04added infrastructure code for later javascript translating (currently not ↵Georg Bauer
active) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #816 -- FileFields now work in the create_update generic view. Thanks, ↵Adrian Holovaty
limodou git-svn-id: http://code.djangoproject.com/svn/django/trunk@1519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Added allow_empty hook to archive_index date-based generic view.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-28Fixed #947 -- Corrected is_paginated variable in list_detail generic view. ↵Adrian Holovaty
Thanks, nesh git-svn-id: http://code.djangoproject.com/svn/django/trunk@1478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-27Added robots meta tag to views.static.serve to block robots from indexing ↵Adrian Holovaty
and archiving the directory-index static view. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26Fixed #903 -- Added login_url argument to user_passes_test view decorator. ↵Adrian Holovaty
Didn't add it to login_required decorator because that would turn login_required into a callable decorator, which would break backwards compatibility. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25MERGED NEW-ADMIN BRANCH (except for po/mo files, which will come in a ↵Adrian Holovaty
separate commit) git-svn-id: http://code.djangoproject.com/svn/django/trunk@1434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25and another little fix to the email sending stuff on password_reset - using ↵Georg Bauer
Context works much better after importing it git-svn-id: http://code.djangoproject.com/svn/django/trunk@1409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25now really fixed the source formatting. brought to you by the magics of ↵Georg Bauer
IRC-based pair programming git-svn-id: http://code.djangoproject.com/svn/django/trunk@1407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24just another small fix to the template_debug layoutGeorg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24fixed debug view for templates so it starts counting with 1Georg Bauer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24mail sending used Template.render, but passed only a dictionary, not a ↵Georg Bauer
Context object git-svn-id: http://code.djangoproject.com/svn/django/trunk@1404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24small fix to the template_debug stuff, it was dropping last characters and ↵Georg Bauer
didn't split the first line correctly git-svn-id: http://code.djangoproject.com/svn/django/trunk@1403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24Fixed #896 -- Fixed error in filesystem serve view in Windows. Thanks, Petar ↵Adrian Holovaty
Marić and nesh git-svn-id: http://code.djangoproject.com/svn/django/trunk@1402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24Fixed #892 -- TemplateDoesNotExist errors now get a 'Template-loader ↵Adrian Holovaty
postmortem' section on the pretty debug page. Thanks for the idea, David Ascher git-svn-id: http://code.djangoproject.com/svn/django/trunk@1400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-24changed the linebreaks_iter function to use str.find instead of re.finditer, ↵Georg Bauer
because the latter one has problems with Python 2.3 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Added Wilson's HTML tweaks to the template error screenAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Added Wilson's CSS tweaks to the template error screenAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Fixed #603 -- Added template debugging errors to pretty error-page output, ↵Adrian Holovaty
if TEMPLATE_DEBUG setting is True. Also refactored FilterParser for a significant speed increase and changed the template_loader interface so that it returns information about the loader. Taken from new-admin. Thanks rjwittams and crew git-svn-id: http://code.djangoproject.com/svn/django/trunk@1379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22Fixed #874 -- Changed debug views to use text/html mime-type instead of ↵Adrian Holovaty
DEFAULT_CONTENT_TYPE. Thanks, Sune git-svn-id: http://code.djangoproject.com/svn/django/trunk@1351 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-21Fixed #866: static.serve view no longer opens files in text mode -- thanks, ↵Jacob Kaplan-Moss
Eugene git-svn-id: http://code.djangoproject.com/svn/django/trunk@1331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Fixed #842 -- 500 error view no longer breaks for local variable named ↵Adrian Holovaty
'items'. Thanks, rjwittams git-svn-id: http://code.djangoproject.com/svn/django/trunk@1297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17Fixed #825; thanks for the suggestions, aaronswJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17Fixed #823 - cleaned up invalid HTML in debug error template. Thanks, SuneJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17Fixed #822 -- Changed 500 view to use disclosure triangles instead of ↵Adrian Holovaty
up/down arrows. Thanks, aaronsw git-svn-id: http://code.djangoproject.com/svn/django/trunk@1272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15Added django.views.generic.simple.redirect_to view for issuing simple ↵Jacob Kaplan-Moss
redirects. Also updated direct_to_template to use render_to_response to be consistant with coding style, and documented the simple generic views. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15Added django.views.generic.simple.direct_to_template which renders a given ↵Jacob Kaplan-Moss
template along with any other params from the URL pattern. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-15Fixed #799: any setting with "SECRET" or "PASSWORD" in the name is escaped ↵Jacob Kaplan-Moss
in the debug view output (this can be expanded if there are other "naughty words" we want to strip out in the future. Thanks, Ian git-svn-id: http://code.djangoproject.com/svn/django/trunk@1242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14Added NOINDEX tag to debug 500 page (for robots)Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-14Added "pretty" error pages to be used when DEBUG is True.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-12Completely refactored legacy RSS framework to the new ↵Adrian Holovaty
django.contrib.syndication package. Also added Atom support, changed the way feeds are registered and added documentation for the whole lot. This is backwards-incompatible, but the RSS framework had not yet been documented, so this should only affect tinkerers and WorldOnline. Fixes #329, #498, #502 and #554. Thanks for various patches/ideas to alastair, ismael, hugo, eric moritz and garthk git-svn-id: http://code.djangoproject.com/svn/django/trunk@1194 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-11-09Added django.core.rss.Feed -- the new RSS interface. Refs #329.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-06Small docstring change to django.views.staticAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: ↵Jacob Kaplan-Moss
this means that the i18n branch is now obsolete and will be made read-only. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-29Fixed #612 - added cache control headers (thanks, hugo)Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-28Fixed #703: added decorators to require that view be called with a given ↵Jacob Kaplan-Moss
HTTP REQUEST_METHOD git-svn-id: http://code.djangoproject.com/svn/django/trunk@1016 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-23Fixed #684 -- Fixed login_required and user_passes_test decorators. Thanks, ↵Adrian Holovaty
rjwittams git-svn-id: http://code.djangoproject.com/svn/django/trunk@1004 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22Added django.views.decorators.auth.user_passes_test, which is a more generic ↵Adrian Holovaty
hook into authentication based on a test. Refactored login_required to use user_passes_test git-svn-id: http://code.djangoproject.com/svn/django/trunk@988 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Removed django.views.admin. Everything has been moved to ↵Adrian Holovaty
django.contrib.admin.views. Refs #627 git-svn-id: http://code.djangoproject.com/svn/django/trunk@928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Moved views.admin.main to contrib.admin.views.main. Refs #627. Note that ↵Adrian Holovaty
this is still backwards-compatible, assuming people are using django.conf.urls.admin as their admin URLconf git-svn-id: http://code.djangoproject.com/svn/django/trunk@927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Moved django.views.admin.template and django.views.admin.doc to ↵Adrian Holovaty
django.contrib.admin.views. Refs #627 git-svn-id: http://code.djangoproject.com/svn/django/trunk@923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-18Changed django.views.admin.doc to use template.loader instead of template_loaderAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@922 bcc190cf-cafb-0310-a4f2-bffc1f526a37