Skip to content

Commit

Permalink
Better settings with django-templated-email 0.4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
yesimon committed Apr 15, 2012
1 parent 2a25ac6 commit d6e484d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ example setting such as::

And create the following templates::

<project_dir>/templates/templated_email/beta/beta_confirm.email
<project_dir>/templates/templated_email/beta/beta_invite.email
<project_dir>/templates/beta/beta_confirm.email
<project_dir>/templates/beta/beta_invite.email


Integration with django_social_auth
Expand Down
6 changes: 4 additions & 2 deletions hunger/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def beta_confirm(email, **kwargs):
context_dict = kwargs.copy()
if templated_email_available:
send_templated_mail(
template_name=os.path.join(templates_folder, 'beta_confirm'),
template_dir=templates_folder,
template_name='beta_confirm',
from_email=from_email,
recipient_list=[email],
context=context_dict,
Expand Down Expand Up @@ -52,7 +53,8 @@ def beta_invite(email, code, **kwargs):

if templated_email_available:
send_templated_mail(
template_name=os.path.join(templates_folder, 'beta_invite'),
template_dir=templates_folder,
template_name='beta_invite',
from_email=from_email,
recipient_list=[email],
context=context_dict,
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d6e484d

Please sign in to comment.