Jacob Kaplan-Moss
887f778794
Fixed #8287 : the debug page now shows the actual requested URL even if you've messed with request.path. Patch from Giuliani Vito Ivan.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 19:59:29 +00:00
Jacob Kaplan-Moss
ddb3cdd514
Fixed #6353 : better handle unicode in exception reasons.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8560 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25 22:47:07 +00:00
Brian Rosner
a64dc39fb7
Fixed #7602 -- Corrected lookup keyword arguments in archive_month and archive_week to properly range when date_field is from DateField. Thanks nullie for the original patch and Colin Grady for the test coverage.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23 04:46:33 +00:00
Russell Keith-Magee
15f8b4cde0
Fixed #8178 : Another update to debug template to aid rendering of exception traces. Thanks to julianb for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-17 04:27:36 +00:00
Russell Keith-Magee
3afa4a4626
Fixed #8178 : Cleaned up the rendering of exceptions on the error template. Thanks to Marinho Brandão for the fix.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16 12:33:36 +00:00
Gary Wilson Jr
ef48a3e69c
Fixed #7830 -- Removed all of the remaining, deprecated, non-oldforms features:
...
* Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead.
* Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead.
* The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively.
* The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively.
* The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead.
* The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively.
* The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead.
* Support for importing `django.newforms` was removed. Use `django.forms` instead.
* Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead.
* Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10 21:10:47 +00:00
Gary Wilson Jr
4774c8d673
Corrected spacing in warning message.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 17:25:37 +00:00
Gary Wilson Jr
020f965087
Fixed #7988 -- Corrected import of the warnings module, thanks richardh.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 17:24:35 +00:00
Adrian Holovaty
0894ddb2bb
Fixed #7848 -- Removed a bunch of code that wasn't contributing to society. Thanks, julien
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 03:26:25 +00:00
Adrian Holovaty
29f0e8182f
Fixed #7847 -- Removed a whole bunch of unused imports from throughout the codebase. Thanks, julien
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 03:24:09 +00:00
Jacob Kaplan-Moss
46786b4193
Fixed #7741 : django.newforms is now django.forms. This is obviously a backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-19 01:22:26 +00:00
Gary Wilson Jr
dc375fb0f3
Refs #3639 -- Minor docstring correction, it's a function not a method.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18 23:52:18 +00:00
Jacob Kaplan-Moss
7997133a3d
Fixed #3639 : updated generic create_update views to use newforms. This is a backwards-incompatible change.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18 19:45:00 +00:00
Malcolm Tredinnick
e7e4b8b0f7
Fixed #6862 -- Refactored debug traceback extraction into an easy-to-use class.
...
Aside from being a little easier to read and use, this means you could subclass
a request/response handler class (from django.core.handlers) to add your own
traceback extraction handling in non-DEBUG environments and reuse this code.
Thanks, Ned Batchelder.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-15 18:47:49 +00:00
Malcolm Tredinnick
409ed9468f
Fixed #7670 -- Fixed a couple of missed changes from [7865]. Patch from jshaffer.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 05:29:23 +00:00
Adrian Holovaty
4406d283e1
Fixed #7478 -- Rolled QuerySetPaginator into the Paginator class, to simplify things. QuerySetPaginator still exists as an alias, for backwards compatibility. Thanks for the suggestion, batiste@dosimple.ch
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 02:08:33 +00:00
Adrian Holovaty
b0d380376c
Fixed #7649 -- Fixed incorrect line numbering in debug view in case of empty spaces. Thanks, dusk
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 01:49:50 +00:00
Adrian Holovaty
16482911fd
Fixed #7127 -- Fixed incorrect docstring for page_not_found() view. Thanks, kcarnold and Simon Greenhill
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 03:41:03 +00:00
Malcolm Tredinnick
eb6a6c4619
Fixed #6864 -- Handle Javascript i18n when the plural form expression returns
...
True or False (so both booleans and integers are allowed). Thanks, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-24 13:27:19 +00:00
Malcolm Tredinnick
0fea1348d6
Fixed #6846 -- Fixed first_on_page and last_on_page in list_detail generic
...
view. Thanks, trevor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-23 05:45:59 +00:00
Malcolm Tredinnick
c01e6b852a
Fixed #6486 -- Added local server time to the debug output page. Patch from
...
Bastian Kleineidam and Thomas Güttler.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 07:01:26 +00:00
Adrian Holovaty
c016352229
Fixed #5935 -- the 'It worked' page is now served with a 200 status code, not a 404. Thanks for bringing this up, Free Neuron
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18 22:21:04 +00:00
Adrian Holovaty
08d4910d69
Changed list_detail.object_list generic view to use the new Paginator class. This is backwards-compatible -- the previous 12 template context variables (has_next, has_previous, etc.) are still passed to the template, but new templates should only access the new template variables 'paginator' and 'page_obj'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18 21:40:45 +00:00
Malcolm Tredinnick
73328bf8ec
Fixed #6494 -- Factored out the HTML debug output into a method of its own for
...
reuse elsewhere. Thanks, Bastian Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18 14:34:48 +00:00
Malcolm Tredinnick
efed04b634
Fixed #5603 -- Allow customization of the language cookie name. Thanks, moe.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-29 18:38:44 +00:00
Gary Wilson Jr
5ca0b9203b
Fixed #5701 -- Fixed decorators to take the name, attributes, and docstring of the function they decorate by adding a modified version of the `functools.wraps` function from Python 2.5. `wraps` has been altered to work with Django's `curry` function and with Python 2.3, which doesn't allow assignment of a function's `__name__` attribute. This fixes severaly annoyances, such as the online documentation for template filters served by the admin app. This change is backwards incompatible if, for some reason, you were relying on the name of a Django decorator instead of the function it decorates.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-25 06:02:35 +00:00
Malcolm Tredinnick
787acefc73
Fixed #6423 -- Don't fall in a hole in the debug screen if somebody raises an old-fashioned string exception. Thanks, guettli.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:24:56 +00:00
Malcolm Tredinnick
8ce7d4740e
Fixed #6359 -- Fixed an oversight in the debug output: template loaders need not have a get_source() method. Thanks, Guido van Rossum.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:11:58 +00:00
Malcolm Tredinnick
046d943148
Fixed #6495 -- Fixed debug traceback HTML output in the rare case when there is no source line to display. Thanks, Bastian Kleineidam.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:24:40 +00:00
Adrian Holovaty
bd0897baa7
Corrected a typo in the debug page -- 'Share this traceback on a public Web site'
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-23 22:53:30 +00:00
Malcolm Tredinnick
b279b75c87
Fixed #5596 -- Changed the static view for the development server so that Django doesn't crash if somebody tries to serve a 200MB file. Patch from eibaan.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17 11:46:48 +00:00
Gary Wilson Jr
58b2374b68
Fixed copy-and-paste view of error page to not indent the first line of installed apps and middleware.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11 05:39:54 +00:00
Gary Wilson Jr
3e360fc963
Fixed imports to adhere to django coding style.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11 05:38:34 +00:00
Gary Wilson Jr
c39d6e89f1
Fixed #6158 -- Display PYTHONPATH on the debug error page. Thanks, annacoder.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11 05:22:11 +00:00
Adrian Holovaty
86c417077d
Changed wording of post-to-dpaste link based on a suggestion from Mordy Ovits
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04 22:20:07 +00:00
Adrian Holovaty
2863b28627
Changed 'Send to DPaste' link (from [6820]) on debug page to wording that's much less inside-basebally. Also changed it so that the button only shows up after clicking 'Switch to copy-and-paste view', so people know what they're getting into. Also unconverted some XHTML tags, as the page uses an HTML 4.01 doctype.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04 06:39:05 +00:00
Malcolm Tredinnick
9075ac4b76
Fixed #685 -- archive_index() and object_list() generic views allow empty
...
result sets by default now. Thanks, Gary Wilson and Matt Croydon.
This is a backwards incompatible change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02 15:43:35 +00:00
Malcolm Tredinnick
13aa1970d4
Fixed #2437 , #6091 -- Added "paste to dpaste" button to debug page. Thanks,
...
Christian Metts, Erik Karulf, Simon Greenhill, dummy@habmalnefrage.de .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02 00:00:36 +00:00
Adrian Holovaty
7628381eb8
Edited docstring from [6505] -- single spaces separate sentences, not double spaces.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-30 05:14:09 +00:00
Malcolm Tredinnick
8d29fabe31
Fixed #5853 -- Added handling for a missing 'en' PO file in translation support
...
(this file being missing is essentially harmless). Thanks, miracle2k.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29 17:29:54 +00:00
Malcolm Tredinnick
b6002d4af6
Fixed #1291 -- Fixed a potential infinite loop for some URL constructions in
...
the development server. Thanks, Graham Carlyle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-29 15:47:47 +00:00
Malcolm Tredinnick
116b9d06cc
Fixed #5974 -- Added autoescaping for source code lines and local variables in
...
technical debug page.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-20 01:37:16 +00:00
Malcolm Tredinnick
356662cf74
Implemented auto-escaping of variable output in templates. Fully controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359
...
See documentation in templates.txt and templates_python.txt for how everything
works.
Backwards incompatible if you're inserting raw HTML output via template variables.
Based on an original design from Simon Willison and with debugging help from Michael Radziej.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-14 12:58:53 +00:00
Gary Wilson Jr
8c442f21dc
Fixed #5816 -- Fixed a regression from [6333] that generates incorrect cookie "expires" dates when using a locale other than English. Introduced `http_date` and `cookie_date` utility functions. Thanks for the report Michael Lemaire. Thanks for the patch Karen Tracey and `SmileyChris`.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-31 03:59:40 +00:00
Malcolm Tredinnick
fcbde3cbe5
Fixed #5712 -- Added more robustness to source code display in the debug view. Our behaviour is a bit more PEP 263 compliant now, too. Thanks, Thomas Güttler.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6585 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21 18:15:01 +00:00
Gary Wilson Jr
a3d015fad0
Added module docstring and corrected order of imports to adhere to PEP 8.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-14 04:10:02 +00:00
Gary Wilson Jr
d79f684f9d
Fixed typo in comment.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-06 02:19:15 +00:00
Adrian Holovaty
e6460e4134
Changed set_language() change from [6320] to use request.REQUEST, which is shorter
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 20:00:14 +00:00
Adrian Holovaty
bb94a48f88
Changed set_language() redirect view to check POST data for 'next'. Thanks, msaelices
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 19:55:48 +00:00
Russell Keith-Magee
b361947745
Fixed #5468 -- Fixed the handling of the context argument in direct_to_template generic views. Thanks, durdinator.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15 11:12:54 +00:00