Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-05 Thread Miracle
Just like Daniel Hepper said, pylint-django solves most of the linting problems you will encounter with django. Install it and you're good to go. On Wed, 4 Dec 2019, 9:23 am Bruckner de Villiers, < bruckner.devilli...@gmail.com> wrote: > Which tutorial are you following? Is it any good? > > >

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-04 Thread Bruckner de Villiers
Which tutorial are you following?  Is it any good? Bruckner de Villiers 083 625 1086 From: on behalf of Aaryan Dewan Reply to: Date: Tuesday, 03 December 2019 at 16:52 To: Django users Subject: Re: Why is the Django server running even when pytlinter shows that there's some bug in

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Aaryan Dewan
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

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Aaryan Dewan
Thanks for the reply! It was very helpful. "Class 'Item' has no 'objects' member" -- Could you explain what exactly a member is? By the way, this problem is common! See: https://stackoverflow.com/questions/45135263/class-has-no-objects-member On Tuesday, December 3, 2019 at 6:57:35 PM

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Bruckner de Villiers
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

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Daniel Hepper
Python is a dynamic programming language with a dynamic type system (as opposed to a static type system like for example Java), see https://en.wikipedia.org/wiki/Dynamic_programming_language Among other things, that means that type checks are done during runtime. That means, if Item really does