Changes between Initial Version and Version 1 of Ticket #21502


Ignore:
Timestamp:
Nov 24, 2013, 8:03:19 AM (11 years ago)
Author:
Baptiste Mispelon
Comment:

Hi,

I think you might have broken imports in your code, but the traceback is not helpful in finding out where.

Does import vbenergyzone.core.utils.log.StaffSuperuserEmailHandler work in a plain shell?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21502

    • Property Cc Baptiste Mispelon added
  • Ticket #21502 – Description

    initial v1  
    11I am trying to upgrade from Django 1.5.5 to Django 1.6.  Everything tests fine, but when I try to run my django project, I get the following error:
    2 
     2{{{
    33    ValueError: Unable to configure handler 'mail_admins': Cannot resolve 'vbenergyzone.core.utils.log.StaffSuperuserEmailHandler': cannot import name BaseHandler
     4}}}
    45
    56Also: http://stackoverflow.com/questions/20167580/django-1-6-upgrade-cannot-import-name-basehandler.
     
    1415
    1516Here is my stacktrace:
    16 
     17{{{
    1718    20:29:03 web.1    | started with pid 1501
    1819    20:29:03 worker.1 | started with pid 1504
     
    9495    20:29:04 web.1    |     '%r: %s' % (name, e))
    9596    20:29:04 web.1    | ValueError: Unable to configure handler 'mail_admins': Cannot resolve 'vbenergyzone.core.utils.log.StaffSuperuserEmailHandler': cannot import name BaseHandler
     97}}}
    9698
    9799Here is my logging configuration:
    98 
     100{{{#!python
    99101    LOGGING = {
    100102        'version': 1,
     
    147149        }
    148150    }
    149 
     151}}}
    150152Here is my custom logger:
    151 
     153{{{#!python
    152154    """
    153155    Logging utilities
     
    215217            formatted_subject = subject.replace('\n', '\\n').replace('\r', '\\r')
    216218            return formatted_subject[:989]
     219}}}
Back to Top