GithubHelp home page GithubHelp logo

stefanfoulis / django-database-email-backend Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 29.0 107 KB

A django email backend that delivers mails to the database for development.

License: MIT License

Python 100.00%

django-database-email-backend's Issues

UnicodeDecodeError

Following error is raised for this line:
raw = u'%s' % message.message().as_string()
if contains non-ascii characters.

DETAILS:
'ascii' codec can't decode byte 0xc5 in position 548: ordinal not in range(128)

Environment:

Request Method: POST
Request URL: http://localhost:8000/koszyk/zapytanie

Django Version: 1.4
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'discount.web',
'discount.account_activation',
'discount.search',
'discount.uni_form',
'discount.basket',
'django_evolution',
'database_email_backend')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/Django-1.2.SVN_17942-py2.7.egg/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/Users/michal/Programowanie/discount/web/decorators.py" in _view
  2.             return func(request, _args, *_kwargs)
    
    File "/Users/michal/Programowanie/discount/web/decorators.py" in _view
  3.             return func(request, _args, *_kwargs)
    
    File "/Users/michal/Programowanie/discount/basket/views.py" in send_inquiry
  4.     send_emails_to_discount_owners(discounts)
    
    File "/Users/michal/Programowanie/discount/basket/helpers.py" in send_emails_to_discount_owners
  5.         send_inquiry_email(discount.owner)  
    
    File "/Users/michal/Programowanie/discount/basket/helpers.py" in send_inquiry_email
  6.                     [user.email]) 
    
    File "/Users/michal/Programowanie/discount/web/helpers.py" in send_template_email
  7. msg.send()
    
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/Django-1.2.SVN_17942-py2.7.egg/django/core/mail/message.py" in send
  8.     return self.get_connection(fail_silently).send_messages([self])
    
    File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/django_database_email_backend-0.2.1-py2.7.egg/database_email_backend/backend.py" in send_messages
  9.             raw = u'%s' % message.message().as_string()
    

Exception Type: UnicodeDecodeError at /koszyk/zapytanie
Exception Value: 'ascii' codec can't decode byte 0xc5 in position 548: ordinal not in range(128)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.