title: Matching query does not exist?
body: <p>This is the view:</p>
  
  <pre><code>def showProject(request, project_slug):
  project = Project.objects.get(slug=project_slug)
  tickets = Ticket.objects.filter(project=project)
  payload = { 'project':project, 'tickets':tickets }
  return render(request, 'project/project.html', payload)
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>Traceback:
  File "C:\Python27\lib\site-packages\django-1.3-py2.7.egg\django\core\handlers\base.py" in get_response
    111.                         response = callback(request, *callback_args, **callback_kwargs)
  File "C:\\project\views.py" in showProject
    13.   project = Project.objects.get(slug=project_slug)
  File "C:\Python27\lib\site-packages\django-1.3-py2.7.egg\django\db\models\manager.py" in get
    132.         return self.get_query_set().get(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django-1.3-py2.7.egg\django\db\models\query.py" in get
    349.                     % self.model._meta.object_name)
  
  Exception Type: DoesNotExist at /project/ticket/
  
  Exception Value: Project matching query does not exist.
  </code></pre>
  
  <p>A more detailed explanation of what is expected: I have a sidebar that lists all open "tickets." When I click on one of those tickets, it should open it. Instead when I try to open it, I'm getting this error. What is happening? 
  Here is the model class:</p>
  
  <pre><code>class Project(models.Model):
      """simple project for tracking purposes"""
      name = models.CharField(max_length = 64)
      slug = models.SlugField(max_length = 100, unique=True,blank=True, null=True)
      description = models.CharField(max_length = 255)
      owner = models.ForeignKey(User, related_name="+")
      created_on = models.DateTimeField(auto_now_add = 1)
      active = models.BooleanField(default=True)
      parent = models.ForeignKey("self", related_name="children", null=True, blank=True)
      repository = models.ForeignKey("Repository", related_name="projects", null=True, blank=True)
      book = models.ForeignKey(Book, related_name="+", null=True, blank=True)
      acl = models.ManyToManyField(AclEntry)
      def save (self):
          if not self.slug:
              self.slug = '-'.join(self.name.lower().split())
          if not self.book:
              book = Book(name=self.name, owner=self.owner)
              book.save()
              self.book = book
          super(Project, self).save()
  </code></pre>
  
  <p>Here is the template code:</p>
  
  <pre><code>{% block title %}Tickets: {{project.name}}{% endblock %}
  
  {% block main %}
  
  &lt;div id="project-nav"&gt;
  &lt;span&gt;&lt;a href="/project/{{project.slug}}/"&gt;Tickets&lt;/a&gt;&lt;/span&gt;
  &lt;span&gt;&lt;a href="/book/{{book.slug}}{{book.name}}"&gt;Docs&lt;/a&gt;&lt;/span&gt;
  &lt;span&gt;&lt;a href="/project/{{project.slug}}/browse"&gt;Browser&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;div id="action-nav"&gt;
  {% block actions %}
  &lt;span&gt;&lt;a href="/project/{{project.slug}}/tickets/create"&gt;Create Ticket&lt;/a&gt;&lt;/span&gt;
  &lt;span&gt;&lt;a href="/project/{{ project.slug }}/tickets/recent"&gt;Recent           Activity&lt;/a&gt;      &lt;/span&gt;
  &lt;span&gt;&lt;a href="/project/{{ project.slug }}/tickets/my/"&gt;My Tickets&lt;/a&gt;&lt;/span&gt;
  {% endblock %}
  &lt;/div&gt;
  {% for ticket in tickets %}
  
  &lt;div class="ticket"&gt;
  &lt;div class="ticket-header"&gt;
      &lt;div class="ticket-title"&gt;
          &lt;a href="/project/ticket/{{ticket.pk}}"&gt;{{ticket.subject}}&lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="ticket-number"&gt;
          #{{ticket.pk}}
      &lt;/div&gt;
      &lt;div id="ticket-state"&gt;
          {{ticket.get_state_display}}
      &lt;/div&gt;
      &lt;div id="ticket-info"&gt;
          Reported by {{ticket.created_by}} | created: {{ticket.created_on   }} | modified: {{ticket.modified_on}}
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  {% endfor %}
  &lt;/div&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>It seems that everything I try to do is going back to this, and I don't understand why. What am I missing? Thanks so much!</p>