Thanks! :)

On Tuesday, December 3, 2019 at 7:00:18 PM UTC+5:30, Bruckner de Villiers 
wrote:
>
> I had the same issue and after trying various weird solutions on 
> Stackoverflow, none of which worked, I found this simple solution – add 
> this comment code to each line giving the error and it magically disappears:
>
>  
>
> *# pylint: disable=no-member*
>
>  
>
>  
>
> Bruckner de Villiers
>
> 083 625 1086
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of Aaryan 
> Dewan <[email protected] <javascript:>>
> *Reply to: *<[email protected] <javascript:>>
> *Date: *Tuesday, 03 December 2019 at 14:34
> *To: *Django users <[email protected] <javascript:>>
> *Subject: *Why is the Django server running even when pytlinter shows 
> that there's some bug in the code?
>
>  
>
> I was just following this tutorial, on how to make Django apps and how to 
> display a database to the user. I created a simple database in models.py 
> and then, I defined a function in views.py, which used Item.objects.all(). 
> Now Pylinter says that* 'Item' has no 'objects' member*!
>
> So this should prevent the server from running ( as its a bug after all!), 
> but if I type in *python manage.py runserver,* the terminal shows no 
> error and the server starts functioning. 
>
>  
>
> Please see the photo attachment to get a clearer view of the problem!
>
> -- 
> 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 [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/6428642e-3d7d-4d95-b387-0894c8410897%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/6428642e-3d7d-4d95-b387-0894c8410897%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/29ca61e2-640f-4e9e-8264-0bb691d0729c%40googlegroups.com.

Reply via email to