Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated django-mailer-2 #23

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open

updated django-mailer-2 #23

wants to merge 47 commits into from

Conversation

aaloy
Copy link

@aaloy aaloy commented Mar 1, 2013

I have made some minor improvements to django-mailer2:

  • added cleanup_mail from a patch from Cleanup mail #16
  • refactored the test so you don't need to have a Django project to test it
  • added a demo project to show how we can retrieve mail info
  • published doc in readthedocs
  • minor bug on unicode mail
  • improved admin list

Corrects a bug when email has unicode chars.
Upgraded setup to remove testing dependency
download attachments and see how the e-mail is displayed.
aaloy and others added 17 commits February 1, 2014 17:37
…l form.

Added links to the message in the list views.
Fixes TemplateDoesNotExist when trying to see the email in the admin.
Fixes TemplateDoesNotExist when trying to see the email in the admin.
I was getting the following error after running './manage.py send_mail':

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
    utility.execute()
  File "/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/env/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/env/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/env/lib/python2.7/site-packages/django/core/management/base.py", line 661, in handle
    return self.handle_noargs(**options)
  File "/env/src/django-mailer/django_mailer/management/commands/send_mail.py", line 41, in handle_noargs
    handler = create_handler(verbosity)
  File "/env/src/django-mailer/django_mailer/management/commands/__init__.py", line 13, in create_handler
    handler.setLevel(LOGGING_LEVEL[verbosity])
KeyError: 1
========================
Changing 
handler.setLevel(LOGGING_LEVEL[verbosity]) 
to 
handler.setLevel(LOGGING_LEVEL[str(verbosity)])
fixes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants