Facing attribue Error

17 views
Skip to first unread message

MaheshKumar

unread,
Nov 1, 2022, 9:41:58 AM11/1/22
to Django users
AttributeError at /employee/type object 'employeeapp' has no attribute 'object'
Request Method:
GET
Request URL:
http://localhost:8000/employee/
Django Version:
4.1.1
Exception Type:
AttributeError
Exception Value:
type object 'employeeapp' has no attribute 'object'
Exception Location:
C:\practice\project2\empapp\views.py, line 9, in empDetails
Raised during:
empapp.views.empDetails
Python Executable:
C:\Users\maheb\AppData\Local\Programs\Python\Python310\python.exe
Python Version:
3.10.7
Python Path:
['C:\\practice\\project2', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\DLLs', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\lib', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310', 'C:\\Users\\maheb\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages']
Server time:
Tue, 01 Nov 2022 05:25:39 +0000

Kasper Laudrup

unread,
Nov 1, 2022, 9:49:23 AM11/1/22
to django...@googlegroups.com
On 01/11/2022 06.26, MaheshKumar wrote:
> AttributeError at /employee/type object 'employeeapp' has no attribute
> 'object'

How do you expect anyone to be able to help you without sharing any code
or explaining what you are trying to do?

Kind regards,
Kasper Laudrup

peteru mimo

unread,
Nov 1, 2022, 9:53:41 AM11/1/22
to django...@googlegroups.com
According to this  ....type object 'employeeapp' has no attribute 'object' .. should be objects not object

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9aa3b8e8-9cd7-4531-af07-bc65942146can%40googlegroups.com.

LAKHVIR SINGH

unread,
Nov 1, 2022, 9:58:17 AM11/1/22
to django...@googlegroups.com
Check imports in views.py file otherwise make migrations after checking employees model

--

MaheshKumar

unread,
Nov 2, 2022, 1:44:01 AM11/2/22
to Django users
Thanks for the instructions sir

subin

unread,
Nov 3, 2022, 3:59:56 PM11/3/22
to django...@googlegroups.com
Welcome to XYZ Company SMS Rewards! Keep your eyes peeled for your first exclusive discount

subin

unread,
Nov 3, 2022, 4:00:59 PM11/3/22
to django...@googlegroups.com
Thank you for your recent purchase from ! Please contact us if you have any questions or visit our website:

subin

unread,
Nov 3, 2022, 4:10:32 PM11/3/22
to django...@googlegroups.com
Thank you for reaching out to us

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

subin

unread,
Nov 3, 2022, 4:12:59 PM11/3/22
to django...@googlegroups.com
Thank you for your immediate response.

On Tue, Nov 1, 2022 at 2:41 PM MaheshKumar <mahe...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages