ageMiddleware',
>>>>>
>>>>> 'django.middleware.clickjacking.XFrameOptionsMiddleware']
>>>>>
>>>>>
>>>>>
>>>>> Traceback:
>>>>>
>>>>> File
>>>>> &quo
ther exception
>>>> occurred:
>>>>
>>>> File
>>>> "/home//.local/lib/python3.7/site-packages/django/core/handlers/exception.py"
>>>>
>>>> in inner
>>>>
>>>> 35. response = get_response
_get_response
>>>
>>> 128. response = self.process_exception_by_middleware(e,
>>> request)
>>>
>>> File
>>> "/home//.local/lib/python3.7/site-packages/django/core/handlers/base.py"
>>> in _get_response
>&g
uot;
>>
>> in home
>>
>> 5. number = request.GET['ccEntry']
>>
>> File
>> "/home//.local/lib/python3.7/site-packages/django/utils/datastructures.py"
>>
>> in __getitem__
>>
>> 79. raise MultiV
_
>
> 79. raise MultiValueDictKeyError(key)
>
> Exception Type: MultiValueDictKeyError at /
>
> Exception Value: 'ccEntry'
>
>
> Request information
>
> USER
>
> AnonymousUser
>
> GET
>
> No GET data
>
> POST
>
uot;get" . Which I
> think is causing the problem here.
>
> On Fri 8 Mar, 2019, 12:03 AM Matthew Pava, > wrote:
>
>> Please just paste the error in the email message. The error message that
>> you have mentions a ‘method’ object, which is not present in the code that
>> you have
s not present in the code that
> you have sent to us. That would be where the problem is.
>
>
>
>
>
>
>
> *From:* django-users@googlegroups.com [mailto:
> django-users@googlegroups.com] *On Behalf Of *drone4four
> *Sent:* Thursday, March 7, 2019 11:29 AM
> *T
; you have mentions a ‘method’ object, which is not present in the code that
> you have sent to us. That would be where the problem is.
>
>
>
>
>
>
>
> *From:* django...@googlegroups.com [mailto:
> django...@googlegroups.com ] *On Behalf Of *drone4four
>
Of drone4four
Sent: Thursday, March 7, 2019 11:29 AM
To: Django users
Subject: Re: Django credit card redaction app - - MultiValueDictKeyError
Thanks, Sam for the help.
You wrote:
I would be careful how you pass the data on get, somewhere in your front end
code you are probably not passing the
Thanks, Sam for the help.
You wrote:
I would be careful how you pass the data on get, somewhere in your front
> end code you are probably not passing the data through as you expected.
> Instead of using .GET, use .GET.get to get your data. This will either
> return the value you want, or non
I would be careful how you pass the data on get, somewhere in your front
end code you are probably not passing the data through as you expected.
Instead of using .GET, use .GET.get to get your data. This will either
return the value you want, or none. I think you have made the error of not
passing
Hello!
I’m trying to run a basic Django app which redacts a 16 digit number
entered by the user. I had a it running a few minutes ago. I’m not sure
what I changed, but now I am getting a MultiValueDictKeyError. I’ve triple
checked every variable. The only dictionary in my project is in views.
12 matches
Mail list logo