Skip to content

Commit

Permalink
finally! AA-730. Only regexp to list all variables left
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoor committed Jan 23, 2015
1 parent 3433459 commit da04da0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion basic_email/views.py
Expand Up @@ -96,7 +96,9 @@ def list_template_variables(self):
tmp_dir = tempfile.mkdtemp()
settings.TEMPLATE_DIRS = settings.TEMPLATE_DIRS + (tmp_dir,)
self.prepare_tmp_files(tmp_dir)
print tmp_dir
file_name = self.get_template().replace(settings.BASIC_EMAIL_DIRECTORY, self.sub_tmp_dir)
content = render_to_string(file_name)
print (content)
#shutil.rmtree(tmp_dir) # careful! removes whole tree.


Expand Down

0 comments on commit da04da0

Please sign in to comment.