title: Why isn't my database working in this Python/Django app?
body: <p>I'm trying to complete the Django tutorial, and everything in my code is working until I try to save and print the instance variables of my object.  </p>
  
  <p>Here's the code for my class (this is in the models.py file of my app):</p>
  
  <pre><code>from django.db import models
  
  class Question(models.Model):
      question_text = models.CharField(max_length=200)
      pub_date = models.DateTimeField('date published')
  </code></pre>
  
  <p>Then I enter this into the terminal: </p>
  
  <pre><code>$ python manage.py sql polls
  </code></pre>
  
  <p>Which returns this output: </p>
  
  <pre><code>BEGIN;
  
  CREATE TABLE `polls_question` (
  
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `question_text` varchar(200) NOT NULL,
  `pub_date` datetime NOT NULL
  
  )
  ;
  CREATE TABLE `polls_choice` (
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `question_id` integer NOT NULL,
  `choice_text` varchar(200) NOT NULL,
  `votes` integer NOT NULL
  )
  ;
  
  ALTER TABLE `polls_choice` ADD CONSTRAINT `question_id_refs_id_f3f98eca` FOREIGN KEY (`question_id`) REFERENCES `polls_question` (`id`);
  
  COMMIT;
  </code></pre>
  
  <p>Then I enter this into my terminal: </p>
  
  <pre><code>$ python manage.py syncdb
  </code></pre>
  
  <p>Which returns this: </p>
  
  <pre><code>Creating tables ...
  Installing custom SQL ...
  Installing indexes ...
  Installed 0 object(s) from 0 fixture(s)
  </code></pre>
  
  <p>Then I enter this the terminal to start the python shell:</p>
  
  <pre><code>$ python manage.py shell
  </code></pre>
  
  <p>And here's the input/output inside the terminal:</p>
  
  <pre><code>In [1]: from polls.models import Question, Choice
  
  In [2]: Question.objects.all()
  Out[2]: []
  
  In [3]: from django.utils import timezone
  
  In [4]: q = Question(question_text="What's new?", pub_date=timezone.now())
  
  In [5]: q.save
  Out[5]: &lt;bound method Question.save of &lt;Question: Question object&gt;&gt;
  #tutorial does not show this above line appearing
  
  In [6]: q.id
  #tutorial says I should get an output from this
  </code></pre>
  
  <p>My questions: </p>
  
  <p>1)  Why am I seeing "&lt; bound method Question.save of >"?</p>
  
  <p>2)  Why don't I get any output when I call the object's id?</p>
  
  <p>Thanks.</p>