Am working on a site using django framework and i got this AttributeError telling me 'str' object has no attribute 'get' : <p>`AttributeError at /polls/ </p>

<p>'str' object has no attribute 'get' </p>

<p>Request Method:     GET</p>

<p>Request URL:    <a href="http://127.0.0.1:8000/polls/" rel="nofollow noreferrer">http://127.0.0.1:8000/polls/</a></p>

<p>Django Version:     2.0.2</p>

<p>Exception Type:     AttributeError</p>

<p>Exception Value: 'str' object has no attribute 'get'</p>

<p>Exception Location:     C:\Python34\lib\site-packages\django-2.0.2-py3.4.egg\django\middleware\clickjacking.py in process_response, line 26</p>

<p>Python Executable:  C:\Python34\python.exe</p>

<p>Python Version:     3.4.1</p>

<p>Python Path: ['C:\Users\WUESE PHILIP\Desktop\vibezt',</p>

<p>'C:\Python34\python34.zip',</p>

<p>'C:\Python34\DLLs',</p>

<p>'C:\Python34\lib',</p>

<p>'C:\Python34',</p>

<p>'C:\Python34\lib\site-packages',</p>

<p>'C:\Python34\lib\site-packages\setuptools-33.1.1-py3.4.egg',</p>

<p>'C:\Python34\lib\site-packages\django-2.0.2-py3.4.egg',</p>

<p>'C:\Python34\lib\site-packages\pytz-2019.3-py3.4.egg']`</p>

<p><code>polls urls.py</code></p>

<p><code>from django.urls import path</code></p>

<p><code>from . import views</code></p>

<p>`urlpatterns = [</p>

<p>path('', views.index, name='index'),</p>

<p>]`</p>

<p><code>views.py</code></p>

<p><code>from django.shortcuts import render</code></p>

<p>`from django.http import HttpResponse</p>

<p>def index(request):</p>

<pre><code>return("&lt;h2&gt;Welcome to my First Python Django Project&lt;/h2&gt;")`
</code></pre>

<p><code>vibezt urls.py</code></p>

<p>`from django.contrib import admin</p>

<p>from django.urls import include, path`</p>

<p>`urlpatterns = [</p>

<p>path('polls/', include('polls.urls')),</p>

<p>path('admin/', admin.site.urls),</p>

<p>]`</p>
