title: How can I see the size of my django/python database or database tables?
body: <p>I would like to see the size of the database I created with django. This is for a project. 
  How do I go about that? I have looked at stackoverflow answers, and I found this answer:</p>
  
  <pre><code>$ python manage.py shell
  
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; from myapp.models import MyModel
  &gt;&gt;&gt; my_model = MyModel()
  &gt;&gt;&gt; total_size = sys.getsizeof(my_model) * MyModel.objects.count()
  </code></pre>
  
  <p>This however always gives a size of 24 bytes, while the tables I put into it have completely different amounts of fields. I suspect this is wrong.</p>
  
  <p>Thanks in advance.</p>