Olá, estou recebendo o erro " Perfil matching query does not exist. " e não estou conseguindo identificar o motivo...
DoesNotExist at /
Perfil matching query does not exist.
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.7.4
Exception Type: DoesNotExist
Exception Value:
Perfil matching query does not exist.
Exception Location: /Library/Python/2.7/site-packages/django/db/models/query.py in get, line 357
Python Executable: /usr/bin/python
Python Version: 2.7.10
Python Path:
['/Users/flamas/connectedin',
'/Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages']
Server time: Sun, 1 Jan 2017 18:37:22 +0000
Traceback Switch to copy-and-paste view
/Library/Python/2.7/site-packages/django/core/handlers/base.py in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars
/Users/flamas/connectedin/perfis/views.py in index
'perfil_logado' : get_perfil_logado(request)}) ...
▶ Local vars
/Users/flamas/connectedin/perfis/views.py in get_perfil_logado
return Perfil.objects.get(id=1) ...
▶ Local vars
/Library/Python/2.7/site-packages/django/db/models/manager.py in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs) ...
▶ Local vars
/Library/Python/2.7/site-packages/django/db/models/query.py in get
self.model._meta.object_name) ...
▶ Local vars