Re: [Django] #10841: Better 500 template for AJAX calls

2019-04-26 Thread Django
#10841: Better 500 template for AJAX calls
-+-
 Reporter:  Riz  |Owner:  Chris
 |  Beaven
 Type:  New feature  |   Status:  closed
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Design
 |  decision needed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Daniel Hahler):

 With regard to curl see
 https://code.djangoproject.com/ticket/1458#comment:2.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/085.0bbe530b7a2b66c0c168ce9334689234%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10841: Better 500 template for AJAX calls

2019-04-26 Thread Django
#10841: Better 500 template for AJAX calls
-+-
 Reporter:  Riz  |Owner:  Chris
 |  Beaven
 Type:  New feature  |   Status:  closed
Component:  Core (Other) |  Version:  master
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Design
 |  decision needed
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Daniel Hahler):

 Just for reference: I've revisited/improved the output format in
 https://code.djangoproject.com/ticket/30411.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/085.8a2c9bb3f1b79f06c5bc4c9b98a1d22a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #10841: Better 500 template for AJAX calls

2011-10-09 Thread Django
#10841: Better 500 template for AJAX calls
-+-
 Reporter:  Riz  |Owner:
 Type:  New feature  |  SmileyChris
Component:  Core (Other) |   Status:  closed
 Severity:  Normal   |  Version:  SVN
 Keywords:   |   Resolution:  fixed
Has patch:  1| Triage Stage:  Design
  Needs tests:  0|  decision needed
Easy pickings:  0|  Needs documentation:  0
 |  Patch needs improvement:  1
 |UI/UX:  0
-+-

Comment (by loewis):

 In [16950]:
 {{{
 #!CommitTicketReference repository="" revision="16950"
 Merged revisions
 
16743,16745,16747-16750,16752-16754,16756-16760,16770,16773-16800,16802-16804,16806,16808,16811,16813,16815,16817-16826,16829-16833,16835-16836,16838-16843,16845-16858,16860-16866,16868,16871-16877,16882-16890,16893-16947
 via svnmerge from
 https://code.djangoproject.com/svn/django/trunk

 
   r16743 | gabrielhurley | 2011-09-09 23:36:58 +0200 (Fr, 09 Sep 2011) | 2
 lines

   Fixed #16791 -- Updated a broken URL in the README file. Thanks to
 paulcwatts for the report and patch.
 
   r16745 | Alex | 2011-09-09 23:45:58 +0200 (Fr, 09 Sep 2011) | 1 line

   Switch to using explicit new-style division behavior, rather than
 relying on teh classic behavior.
 
   r16747 | SmileyChris | 2011-09-10 00:32:38 +0200 (Sa, 10 Sep 2011) | 1
 line

   Fix and test for cleaning a non-string value in a URLField
 
   r16748 | gabrielhurley | 2011-09-10 00:33:28 +0200 (Sa, 10 Sep 2011) | 2
 lines

   Fixed #16786 -- Minor cleanups in the memcached section of the caching
 topic guide. Thanks to jamesp for the report and patch.
 
   r16749 | jbronn | 2011-09-10 00:34:23 +0200 (Sa, 10 Sep 2011) | 1 line

   Fixed #16408 -- Fixed conversion of dates, and other problems with the
 SpatiaLite backend.
 
   r16750 | jbronn | 2011-09-10 00:47:18 +0200 (Sa, 10 Sep 2011) | 1 line

   Removed extra call to `syncdb` that slipped in with r16749.
 
   r16752 | SmileyChris | 2011-09-10 00:57:12 +0200 (Sa, 10 Sep 2011) | 1
 line

   Fixes #16664 -- URLField's to_python method fails with ValueError on
 some urls on python 2.7. Based on patch by zigzag.
 
   r16753 | russellm | 2011-09-10 01:02:33 +0200 (Sa, 10 Sep 2011) | 1 line

   Added two pointless query repeats to work around a known issue with
 MySQL that was causing failures in our test suite.
 
   r16754 | gabrielhurley | 2011-09-10 01:25:48 +0200 (Sa, 10 Sep 2011) | 2
 lines

   Fixed #16782 -- Corrected a broken cross-reference to the database
 engine setting in the tutorial. Thanks to mjumbewu for the report and
 patch.
 
   r16756 | kmtracey | 2011-09-10 02:05:48 +0200 (Sa, 10 Sep 2011) | 2
 lines

   Fixed #15722: ensure formsets evaluate to True even if they have no
 forms. Thanks mlavin.
 
   r16757 | jbronn | 2011-09-10 02:29:34 +0200 (Sa, 10 Sep 2011) | 1 line

   Fixed #13670 -- Comparisons with the spatial adapter won't blow up in
 some corner cases.  Thanks, milosu for the bug report and jpaulett for the
 patch.
 
   r16758 | russellm | 2011-09-10 02:46:38 +0200 (Sa, 10 Sep 2011) | 1 line

   Added protection against spoofing of X_FORWARDED_HOST headers. A
 security announcement will be made shortly.
 
   r16759 | russellm | 2011-09-10 02:46:48 +0200 (Sa, 10 Sep 2011) | 1 line

   Corrected an issue which could allow attackers to manipulate session
 data using the cache. A security announcement will be made shortly.
 
   r16760 | russellm | 2011-09-10 02:47:00 +0200 (Sa, 10 Sep 2011) | 1 line

   Altered the behavior of URLField to avoid a potential DOS vector, and to
 avoid potential leakage of local filesystem data. A security announcement
 will be made shortly.
 
   r16770 | Alex | 2011-09-10 03:53:56 +0200 (Sa, 10 Sep 2011) | 1 line

   Make ``Formset.__getitem__`` O(1), rather than O(n).  If you override
 ``__iter__`` you now need to also override ``__getitem__`` for consistant
 behavior.  Thanks to Carl and Russ for the review.
 
   r16773 | Alex | 2011-09-10 04:42:05 +0200 (Sa, 10 Sep 2011) | 1 line

   Fixed #11404.  Added ``FormSet.has_changed``, for consistancy with
 ``Form.has_changed``. Thanks to michelts for the patch.
 
   r16774 | Alex | 2011-09-10 04:52:37 +0200 (Sa, 10 Sep 2011) | 1 line

   Fixed #16793. Added more cross referencing to the load tag's
 documentation.  Thanks to bluejeansummer for the patch.
 
   r16775 | jbronn | 2011-09-10 05:04:30 +0200 (Sa, 10 Sep 2011) | 1 line

   Fixed #16790 -- Modified the geographic admin to work after r16594.
 

Re: [Django] #10841: Better 500 template for AJAX calls

2011-10-01 Thread Django
#10841: Better 500 template for AJAX calls
-+-
 Reporter:  Riz  |Owner:
 Type:  New feature  |  SmileyChris
Component:  Core (Other) |   Status:  closed
 Severity:  Normal   |  Version:  SVN
 Keywords:   |   Resolution:  fixed
Has patch:  1| Triage Stage:  Design
  Needs tests:  0|  decision needed
Easy pickings:  0|  Needs documentation:  0
 |  Patch needs improvement:  1
 |UI/UX:  0
-+-
Changes (by ramiro):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [16921]:
 {{{
 #!CommitTicketReference repository="" revision="16921"
 Fixed #10841 -- Switched response served when DEBUG=True and
 request.is_ajax() returns True (indicating request has been generated by a
 JS library) to a plain text version for easier debugging.

 Contents of this response are similar to its HTML counterpart modulo frame
 variables values in the Python traceback section.

 Thanks to Riz for the report, to SmileyChris for the patch and to Julien
 for reviewing.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-08-10 Thread Django
#10841: Better 500 template for AJAX calls
-+-
   Reporter:  Riz|  Owner:  SmileyChris
     | Status:  assigned
   Type:  New|  Component:  Core (Other)
  feature|   Severity:  Normal
  Milestone: |   Keywords:
Version:  SVN|  Has patch:  1
 Resolution: |Needs tests:  0
   Triage Stage:  Design |  Easy pickings:  0
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  1  |
  UI/UX:  0  |
-+-

Comment (by anonymous):

 bump

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-07-13 Thread Django
#10841: Better 500 template for AJAX calls
-+-
   Reporter:  Riz|  Owner:  SmileyChris
     | Status:  assigned
   Type:  New|  Component:  Core (Other)
  feature|   Severity:  Normal
  Milestone: |   Keywords:
Version:  SVN|  Has patch:  1
 Resolution: |Needs tests:  0
   Triage Stage:  Design |  Easy pickings:  0
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  1  |
  UI/UX:  0  |
-+-

Comment (by ramiro):

 #16190 and #16227 were duplicates of this one.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-06-12 Thread Django
#10841: Better 500 template for AJAX calls
-+-
   Reporter:  Riz|  Owner:  SmileyChris
     | Status:  assigned
   Type:  New|  Component:  Core (Other)
  feature|   Severity:  Normal
  Milestone: |   Keywords:
Version:  SVN|  Has patch:  1
 Resolution: |Needs tests:  0
   Triage Stage:  Design |  Easy pickings:  0
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  1  |
  UI/UX:  0  |
-+-
Changes (by gregmuellegger):

 * cc: gregor@… (added)
 * ui_ux:   => 0
 * easy:   => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-04-08 Thread Django
#10841: Better 500 template for AJAX calls
-+-
   Reporter:  Riz|Owner:  SmileyChris
     |   Status:  assigned
   Type:  New|Component:  Core (Other)
  feature| Severity:  Normal
  Milestone: | Keywords:
Version:  SVN|Has patch:  1
 Resolution: |  Needs tests:  0
   Triage Stage:  Design |
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  1  |
-+-
Changes (by SmileyChris):

 * type:   => New feature
 * severity:   => Normal


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-03-19 Thread Django
#10841: Better 500 template for AJAX calls
-+-
   Reporter:  Riz|Owner:  SmileyChris
     |Milestone:
 Status:  assigned   |  Version:  SVN
  Component:  Core   | Keywords:
  framework  |Has patch:  1
 Resolution: |  Needs tests:  0
   Triage Stage:  Design |
  decision needed|
Needs documentation:  0  |
Patch needs improvement:  1  |
-+-
Changes (by kmike):

 * cc: kmike84@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-02-26 Thread Django
#10841: Better 500 template for AJAX calls
---+
   Reporter:  Riz  | Owner:  
SmileyChris
 Status:  assigned | Milestone: 

  Component:  Core framework   |   Version:  SVN

 Resolution:   |  Keywords: 

   Triage Stage:  Design decision needed   | Has patch:  1  

Needs documentation:  0|   Needs tests:  0  

Patch needs improvement:  1|  
---+
Changes (by lrekucki):

 * cc: lrekucki@… (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2011-02-25 Thread Django
#10841: Better 500 template for AJAX calls
---+
   Reporter:  Riz  | Owner:  
SmileyChris
 Status:  assigned | Milestone: 

  Component:  Core framework   |   Version:  SVN

 Resolution:   |  Keywords: 

   Triage Stage:  Design decision needed   | Has patch:  1  

Needs documentation:  0|   Needs tests:  0  

Patch needs improvement:  1|  
---+

Comment (by anonymous):

 I've seen a very nice implementation of something similar to it from
 Google on their Google Vizualization tools.
 Check this out

 
http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#responseformat

 It's simliar to waht vdboor suggested.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2010-10-03 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  1|  
--+-
Comment (by vdboor):

 I would love to see '''JSON''' in the response, instead of plain text or
 HTML.
 This is what ASP.NET also does, and it works really nice in practice.

 Some of the fields could be:

  * errortype
  * message
  * stacktrace

 The !JavaScript developer can choose whether to show a message, or dump
 the stracktrace at the console.
 Dumping a text/HTML message to the output makes it really hard to do
 something sane from the JavaScript side of things.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2010-05-31 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Comment (by Riz):

 I think this ticket can be closed now as new versions of firebug has
 "HTML" tab for viewing ajax responses.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2010-05-25 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Changes (by RaceCondition):

 * cc: RaceCondition (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #10841: Better 500 template for AJAX calls

2009-07-06 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Changes (by ramusus):

 * cc: ramusus (removed)
 * cc: ramu...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-30 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Changes (by justinlilly):

 * cc: justinlilly (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-30 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Changes (by ramusus):

 * cc: ramusus (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-25 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  SmileyChris
Status:  assigned | Milestone: 
 Component:  Core framework   |   Version:  SVN
Resolution:   |  Keywords: 
 Stage:  Design decision needed   | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  0|  
--+-
Changes (by SmileyChris):

  * owner:  nobody => SmileyChris
  * status:  new => assigned

Comment:

 (i'm accepting as a reminder for me to raise the issue after 1.1 lands)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-25 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  SVN   
Resolution:   |  Keywords:
 Stage:  Design decision needed   | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by SmileyChris):

  * has_patch:  0 => 1
  * version:  1.0 => SVN
  * stage:  Unreviewed => Design decision needed

Comment:

 Here's a new version which moves the AJAX test to the
 `technical_500_response` and returns the correct mime type (I also tidied
 up the new text version of the template and refactored the html/text
 traceback generation).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-09 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Michail Sychev ):

 Another point why JSON is bad idea - when you wrap string into JSON all
 non ascii characters get encoded, which makes it unreadable for normlal
 user.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-09 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by Glenn):

 * cc: gl...@zewt.org (added)

Comment:

 This issue is a frustration for everyone doing AJAX with Django.  I hope
 this gets fixed.

 I don't think errors should be returned as a broken-apart JSON string.  It
 would make testing with curl, etc. harder, and it doesn't seem useful for
 clients to try to figure out why the server crashed.

 I could see a case for wrapping the entire templated error into JSON, but
 I think it's simpler for the client to just assume that 500 errors return
 plaintext, and do something like:

 {{{
 new Ajax.Request("/ajax.json", {
 on500: function(resp) {
 $("error").update(resp.responseText.replace("\n", "")); }
 onSuccess: function(resp) { f(resp.responseJSON); }
 });
 }}}

 ... to display errors in the page, even when the normal response is JSON.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-08 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Riz):

 Making it JSON is a nice idea ( maybe with combination of checking
 "accept" headers ) but afaik when you have 500 error it usually means that
 something really wrong happend and it's outside the frontend\javascript
 app logic (syntax error for example, or integrity error), not to note that
 you need debug 500 page only during development time and adding special
 logic just for debug time looks like an overkill. So my main point was to
 make it easy to read by developer, as ( usually ) special logic at
 javascript side for 500 error page will not exist.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-08 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by alexkoshelev):

 * cc: alexkoshelev (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-05-08 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by jacob):

 Why not make the AJAX 500 template be valid JSON? Then it'd be easy for
 clients to programatically figure out what went wrong.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-04-27 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Michail Sychev ):

 New patch, some cleanups.

 I think some other templates should have ajax support, like comment's 400
 page. But I am not completly sure about it, I use mptt comments which have
 ajax posting support and having ajax 400 page is very useful. But afaik
 django default comment system don't have direct ajax support. Any
 suggestions?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-04-16 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Michail Sychev ):

 I don't think that DEBUG_PROPAGATE_EXCEPTIONS will help. I want django to
 handle exceptions and provide all info like GET\POST vars, just do it
 differently in ajax and non ajax cases. And I want to have normal 500 page
 for non ajax calls.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10841: Better 500 template for AJAX calls

2009-04-16 Thread Django
#10841: Better 500 template for AJAX calls
--+-
  Reporter:  Riz   | Owner:  nobody
Status:  new  | Milestone:
 Component:  Core framework   |   Version:  1.0   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by dc):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Note that you can use [http://docs.djangoproject.com/en/dev/ref/settings
 /#debug-propagate-exceptions DEBUG_PROPAGATE_EXCEPTIONS] to get simple
 traceback.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #10841: Better 500 template for AJAX calls

2009-04-16 Thread Django
#10841: Better 500 template for AJAX calls
-+--
 Reporter:  Riz   |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Core framework   | Version:  1.0   
 Keywords:   |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 Currently it's quite hard to debug errors raised during ajax calls because
 of full 500 page being returned. This diff adds simple 500 page, it's
 pretty close to code for pasting to dpaste but with additional
 GET\POST\META\FILES\Settings lists and error summary moved to top. Simple
 check to self.request.is_ajax() is made to select template to use.

 As for me, it's much easier to use tools like Firebug with this patch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---