Django error: type object has no attribute 'objects'‏‏

27 views
Skip to first unread message

Shada Bahassan

unread,
Nov 9, 2021, 8:26:46 AM11/9/21
to Django users
Hi Developer, 

After  I connected mysql with django, I wrote in the view files to interact with the models files. And when runsever, It give errortype object 'DemoMCall' has no attribute 'obejects'


I've attached the files of models, urls and views below.

I don't know how to solve this... any pointers in the right direction very much appreciated.  



urls_fieles.PNG
models_file.PNG
views_file.PNG

Kasper Laudrup

unread,
Nov 9, 2021, 8:48:20 AM11/9/21
to django...@googlegroups.com
On 09/11/2021 14.26, Shada Bahassan wrote:
> After  I connected mysql with django, I wrote in the view files to
> interact with the models files. And when runsever, It give error: type
> object 'DemoMCall' has no attribute 'obejects'
>

Typo: obejects -> objects.

Kind regards

Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

Shada Bahassan

unread,
Nov 10, 2021, 3:05:01 AM11/10/21
to Django users
 
 Thank you so much Kasper Laudrup    
Reply all
Reply to author
Forward
0 new messages