We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to access any kind of report an "context must be a dict rather than Context" error occurs.
Here is the detailed information:
Environment:
Request Method: POST Request URL: http://localhost:8000/reports/download/?report_type=engagement_coverage
Django Version: 1.11.22 Python Version: 3.8.0 Installed Applications: ('boh', 'boh_api', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'rest_framework', 'rest_framework.authtoken', 'django_filters', 'widget_tweaks') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware')
Traceback:
File "/libs/django/core/handlers/exception.py" in inner 41. response = get_response(request)
File "/libs/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request)
File "/libs/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request)
File "/libs/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/libs/django/contrib/auth/decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs)
File "/libs/django/views/decorators/http.py" in inner 40. return func(request, *args, **kwargs)
File "/bag-of-holding/project/boh/views.py" in dashboard_reports_download 188. return reports.EngagementCoverageReport(file_name, form.cleaned_data['format'], form.cleaned_data['organizations'], request.user).response()
File "/bag-of-holding/project/boh/reports.py" in response 36. response.write(self.generate())
File "/bag-of-holding/project/boh/reports.py" in generate 57. return template.render(context)
File "/libs/django/template/backends/django.py" in render 64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)
File "/libs/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 /reports/download/ Exception Value: context must be a dict rather than Context.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When trying to access any kind of report an "context must be a dict rather than Context" error occurs.
Here is the detailed information:
Environment:
Request Method: POST
Request URL: http://localhost:8000/reports/download/?report_type=engagement_coverage
Django Version: 1.11.22
Python Version: 3.8.0
Installed Applications:
('boh',
'boh_api',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'rest_framework',
'rest_framework.authtoken',
'django_filters',
'widget_tweaks')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "/libs/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/libs/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/libs/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/libs/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/libs/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/libs/django/views/decorators/http.py" in inner
40. return func(request, *args, **kwargs)
File "/bag-of-holding/project/boh/views.py" in dashboard_reports_download
188. return reports.EngagementCoverageReport(file_name, form.cleaned_data['format'], form.cleaned_data['organizations'], request.user).response()
File "/bag-of-holding/project/boh/reports.py" in response
36. response.write(self.generate())
File "/bag-of-holding/project/boh/reports.py" in generate
57. return template.render(context)
File "/libs/django/template/backends/django.py" in render
64. context = make_context(context, request, autoescape=self.backend.engine.autoescape)
File "/libs/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 /reports/download/
Exception Value: context must be a dict rather than Context.
The text was updated successfully, but these errors were encountered: