dimanche 7 avril 2019

server error in my first server run in python

i just started learning python Django and as i run the server it shows me page not found. i went on to include my index page and it shows attribute error ('str' object has no attribute 'get')

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in pybop.urls, Django tried these URL patterns, in this order:

admin/
products/
The empty path didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.



AttributeError at /products/
'str' object has no attribute 'get'
Request Method: GET
Request URL:    http://127.0.0.1:8000/products/
Django Version: 2.2
Exception Type: AttributeError
Exception Value:    
'str' object has no attribute 'get'
Exception Location: C:\Users\Ishaku Danladi\PycharmProjects\pydop\venv\lib\site-packages\django\middleware\clickjacking.py in process_response, line 26
Python Executable:  C:\Users\Ishaku Danladi\PycharmProjects\pydop\venv\Scripts\python.exe
Python Version: 3.7.2
Python Path:    
['C:\\Users\\Ishaku Danladi\\PycharmProjects\\pydop',
 'C:\\Users\\Ishaku '
 'Danladi\\AppData\\Local\\Programs\\Python\\Python37\\python37.zip',
 'C:\\Users\\Ishaku Danladi\\AppData\\Local\\Programs\\Python\\Python37\\DLLs',
 'C:\\Users\\Ishaku Danladi\\AppData\\Local\\Programs\\Python\\Python37\\lib',
 'C:\\Users\\Ishaku Danladi\\AppData\\Local\\Programs\\Python\\Python37',
 'C:\\Users\\Ishaku Danladi\\PycharmProjects\\pydop\\venv',
 'C:\\Users\\Ishaku Danladi\\PycharmProjects\\pydop\\venv\\lib\\site-packages',
 'C:\\Users\\Ishaku '
 'Danladi\\PycharmProjects\\pydop\\venv\\lib\\site-packages\\setuptools-40.8.0-py3.7.egg',
 'C:\\Users\\Ishaku '
 'Danladi\\PycharmProjects\\pydop\\venv\\lib\\site-packages\\pip-19.0.3-py3.7.egg']
Server time:    Sun, 7 Apr 2019 17:10:12 +0000




Aucun commentaire:

Enregistrer un commentaire