[Django Code] #8997: Misleading error message when calling get_absolute_url

View: New views
5 Messages — Rating Filter:   Alert me  

[Django Code] #8997: Misleading error message when calling get_absolute_url

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#8997: Misleading error message when calling get_absolute_url
------------------------------------------------+---------------------------
 Reporter:  Rob <digital_illuminati@...>  |       Owner:  nobody    
   Status:  new                                 |   Milestone:            
Component:  Uncategorized                       |     Version:  1.0      
 Keywords:                                      |       Stage:  Unreviewed
Has_patch:  0                                   |  
------------------------------------------------+---------------------------
 If a model has a get_absolute_url method that has an error in it (such as
 a trivial syntax area like a typo in a field name), when you try to view
 the page, django reports the error as "<Foo> objects don't have
 get_absolute_url() methods".

 This is very misleading and makes it difficult to debug the error if you
 are not especially familiar with django. I'm guessing the appropriate
 exceptions are being swallowed somewhere and turned into the wrong error
 message.

--
Ticket URL: <http://code.djangoproject.com/ticket/8997>
Django Code <http://code.djangoproject.com/>
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@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #8997: Misleading error message when calling get_absolute_url

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#8997: Misleading error message when calling get_absolute_url
---------------------------------------------------------+------------------
          Reporter:  Rob <digital_illuminati@...>  |         Owner:  nobody
            Status:  new                                 |     Milestone:        
         Component:  Uncategorized                       |       Version:  1.0  
        Resolution:                                      |      Keywords:        
             Stage:  Unreviewed                          |     Has_patch:  0    
        Needs_docs:  0                                   |   Needs_tests:  0    
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Changes (by jacob):

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

Comment:

 We need more details to figure this one out. Where, exactly, are you
 seeing that error message? Is there a traceback? If so, post it. Is this
 only with a specific model or setup, or does this happen elsewhere?

--
Ticket URL: <http://code.djangoproject.com/ticket/8997#comment:1>
Django <http://code.djangoproject.com/>
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@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #8997: Misleading error message when calling get_absolute_url

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#8997: Misleading error message when calling get_absolute_url
---------------------------------------------------------+------------------
          Reporter:  Rob <digital_illuminati@...>  |         Owner:  nobody
            Status:  new                                 |     Milestone:        
         Component:  Uncategorized                       |       Version:  1.0  
        Resolution:                                      |      Keywords:        
             Stage:  Design decision needed              |     Has_patch:  0    
        Needs_docs:  0                                   |   Needs_tests:  0    
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Changes (by jacob):

  * stage:  Unreviewed => Design decision needed

--
Ticket URL: <http://code.djangoproject.com/ticket/8997#comment:2>
Django <http://code.djangoproject.com/>
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@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #8997: Misleading error message when calling get_absolute_url

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#8997: Misleading error message when calling get_absolute_url
---------------------------------------------------------+------------------
          Reporter:  Rob <digital_illuminati@...>  |         Owner:  nobody
            Status:  new                                 |     Milestone:        
         Component:  Database layer (models, ORM)        |       Version:  1.0  
        Resolution:                                      |      Keywords:        
             Stage:  Design decision needed              |     Has_patch:  0    
        Needs_docs:  0                                   |   Needs_tests:  0    
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Changes (by thejaswi_puthraya):

  * component:  Uncategorized => Database layer (models, ORM)

--
Ticket URL: <http://code.djangoproject.com/ticket/8997#comment:3>
Django <http://code.djangoproject.com/>
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@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #8997: Misleading error message when calling get_absolute_url

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#8997: Misleading error message when calling get_absolute_url
---------------------------------------------------------+------------------
          Reporter:  Rob <digital_illuminati@...>  |         Owner:  nobody
            Status:  new                                 |     Milestone:        
         Component:  Database layer (models, ORM)        |       Version:  1.0  
        Resolution:                                      |      Keywords:        
             Stage:  Design decision needed              |     Has_patch:  0    
        Needs_docs:  0                                   |   Needs_tests:  0    
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Changes (by anonymous):

 * cc: pb@... (added)

--
Ticket URL: <http://code.djangoproject.com/ticket/8997#comment:4>
Django <http://code.djangoproject.com/>
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@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---