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

Problem when upgrading to django 1.11: context must be a dict rather than Context. #28

Open
coolmaksat opened this issue Aug 28, 2018 · 0 comments

Comments

@coolmaksat
Copy link

template render function requires context to be dict in django 1.11
Traceback:

File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in send
82. message = self.render_to_message(extra_context=extra_context, **kwargs)

File "/venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_to_message
60. subject=self.render_subject(context),

File "//venv/local/lib/python2.7/site-packages/mailviews/messages.py" in render_subject
161. rendered = self.subject_template.render(unescape(context))

File "/venv/local/lib/python2.7/site-packages/django/template/backends/django.py" in render
64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)

File "/venv/local/lib/python2.7/site-packages/django/template/context.py" in make_context
287. raise TypeError('context must be a dict rather than %s.' % context.class.name)

Exception Type: TypeError at /accounts/request/demo/
Exception Value: context must be a dict rather than Context.

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

No branches or pull requests

1 participant