TypeError : 'QueryDict' object is not callable on markdown preview
- Dominant language
- JavaScript
- Stars
- 389
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
Description
When I try to preview my markdown I got an error 500 with this response.
`Environment:
Request Method: GET
Request URL: http://localhost:8000/markdown/preview/
Django Version: 1.8.4
Python Version: 3.4.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog',
'django_markdown')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'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 "/usr/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
1. response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/usr/lib/python3.4/site-packages/django_markdown/views.py" in preview
2. content=request.REQUEST.get('data','No posted content'),
Exception Type: TypeError at /markdown/preview/
Exception Value: 'QueryDict' object is not callable`
##
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26309679-typeerror-querydict-object-is-not-callable-on-markdown-preview?utm_campaign=plugin&utm_content=tracker%2F332251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F332251&utm_medium=issues&utm_source=github).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in django_markdown/views.py at the preview view and inspect the request access shown in the traceback. Reproduce the GET request to /markdown/preview/ with the reported Django and Python versions; done means the endpoint no longer raises the QueryDict TypeError and returns the markdown preview.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100