title: How long class attributes live in python (Django)
body: <p>I have this class in my Django app:</p>
  <pre><code> class MyClass:
     property_1 = []
   
     def add_elem(self):
       self.property_1.append(1)
       print(self.property_1)
  
  MyClass().add_elem()
  MyClass().add_elem()
  </code></pre>
  <p>The output will be:</p>
  <ul>
  <li>[1]</li>
  <li>[1, 1]</li>
  </ul>
  <p>That means that when I start Django server, all the scripts(all app) are loaded to memory and as property_1 is a class attribute, every time I call add_elem(), I add a new '1' to the property? And property_1 will be cleaned only after restart server?</p>