title: django AttributeError 'WSGIRequest' object has no attribute 'get'
body: <p>//id can't found error point, and didn't search solutions</p>
  <blockquote>
  <p>AttributeError at /product/3
  'WSGIRequest' object has no attribute 'get'
  Request Method:   GET
  Request URL:  <a href="http://127.0.0.1:8000/product/3" rel="nofollow noreferrer">http://127.0.0.1:8000/product/3</a>
  Django Version:   3.1.6
  Exception Type:   AttributeError
  Exception Value:<br />
  'WSGIRequest' object has no attribute 'get'
  Exception Location:   C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\widgets.py,
  line 652, in value_from_datadict
  Python Executable:    C:\Users\vudgh\anaconda3\python.exe
  Python Version:   3.8.5
  Python Path:<br />
  ['C:\Pytion_WorkSpoace\oto_shop',
  'C:\Users\vudgh\anaconda3\python38.zip',
  'C:\Users\vudgh\anaconda3\DLLs',
  'C:\Users\vudgh\anaconda3\lib',
  'C:\Users\vudgh\anaconda3',
  'C:\Users\vudgh\AppData\Roaming\Python\Python38\site-packages',
  'C:\Users\vudgh\anaconda3\lib\site-packages',
  'C:\Users\vudgh\anaconda3\lib\site-packages\win32',
  'C:\Users\vudgh\anaconda3\lib\site-packages\win32\lib',
  'C:\Users\vudgh\anaconda3\lib\site-packages\Pythonwin']
  Server time:  Thu, 08 Apr 2021 22:40:36 +0900</p>
  </blockquote>
  <p>Error during template rendering
  In template C:\Pytion_WorkSpoace\oto_shop\templates\base.html, error at line 0</p>
  <p>'WSGIRequest' object has no attribute 'get'</p>
  <pre><code>1   &lt;!DOCTYPE html&gt;
  2   &lt;html lang=&quot;en&quot;&gt;
  3       &lt;head&gt;
  4           &lt;meta charset=&quot;UTF-8&quot;&gt;
  5           &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  6           &lt;title&gt;{% block title %} {% endblock %}&lt;/title&gt;
  7           &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1&quot; crossorigin=&quot;anonymous&quot;&gt;
  8           &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js&quot; integrity=&quot;sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  9       
  10      &lt;/head&gt;
  </code></pre>
  <p>Traceback Switch to copy-and-paste view</p>
  <pre><code>Environment:
  
  
  Request Method: GET
  Request URL: http://127.0.0.1:8000/product/3
  
  Django Version: 3.1.6
  Python Version: 3.8.5
  Installed Applications:
  ['django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.sessions',
   'django.contrib.messages',
   'django.contrib.staticfiles',
   'django.contrib.humanize',
   'users',
   'product',
   'order',
   'board',
   'rest_framework']
  Installed Middleware:
  ['django.middleware.security.SecurityMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware']
  
  
  Template error:
  In template C:\Pytion_WorkSpoace\oto_shop\templates\base.html, error at line 0
     'WSGIRequest' object has no attribute 'get'
     1 : &lt;!DOCTYPE html&gt;
     2 : &lt;html lang=&quot;en&quot;&gt;
     3 :     &lt;head&gt;
     4 :         &lt;meta charset=&quot;UTF-8&quot;&gt;
     5 :         &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
     6 :         &lt;title&gt;{% block title %} {% endblock %}&lt;/title&gt;
     7 :         &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1&quot; crossorigin=&quot;anonymous&quot;&gt;
     8 :         &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js&quot; integrity=&quot;sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
     9 :     
     10 :     &lt;/head&gt;
  
  
  Traceback (most recent call last):
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 829, in _resolve_lookup
      current = current[bit]
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\boundfield.py&quot;, line 67, in __getitem__
      raise TypeError(
  
  During handling of the above exception (BoundField indices must be integers or slices, not str.), another exception occurred:
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\core\handlers\exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\core\handlers\base.py&quot;, line 204, in _get_response
      response = response.render()
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\response.py&quot;, line 105, in render
      self.content = self.rendered_content
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\response.py&quot;, line 83, in rendered_content
      return template.render(context, self._request)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\backends\django.py&quot;, line 61, in render
      return self.template.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 170, in render
      return self._render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 162, in _render
      return self.nodelist.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 938, in render
      bit = node.render_annotated(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 905, in render_annotated
      return self.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\loader_tags.py&quot;, line 150, in render
      return compiled_parent._render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 162, in _render
      return self.nodelist.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 938, in render
      bit = node.render_annotated(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 905, in render_annotated
      return self.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\loader_tags.py&quot;, line 62, in render
      result = block.nodelist.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 938, in render
      bit = node.render_annotated(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 905, in render_annotated
      return self.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\defaulttags.py&quot;, line 211, in render
      nodelist.append(node.render_annotated(context))
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 905, in render_annotated
      return self.render(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\defaulttags.py&quot;, line 305, in render
      match = condition.eval(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\defaulttags.py&quot;, line 889, in eval
      return self.value.resolve(context, ignore_failures=True)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 671, in resolve
      obj = self.var.resolve(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 796, in resolve
      value = self._resolve_lookup(context)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\template\base.py&quot;, line 837, in _resolve_lookup
      current = getattr(current, bit)
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\boundfield.py&quot;, line 78, in errors
      return self.form.errors.get(self.name, self.form.error_class())
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\forms.py&quot;, line 172, in errors
      self.full_clean()
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\forms.py&quot;, line 374, in full_clean
      self._clean_fields()
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\forms.py&quot;, line 386, in _clean_fields
      value = field.widget.value_from_datadict(self.data, self.files, self.add_prefix(name))
    File &quot;C:\Users\vudgh\anaconda3\lib\site-packages\django\forms\widgets.py&quot;, line 652, in value_from_datadict
      getter = data.get
  
  Exception Type: AttributeError at /product/3
  Exception Value: 'WSGIRequest' object has no attribute 'get'
  </code></pre>