title: django: sqlite3.OperationalError: no such table
body: <p>i don't now why, but from one day to another y started to have problems when i tried to run the tests.
  I'm using django 1.1 (customer requirements) and when i running test whith:</p>
  
  <pre><code>python manage.py test --setting=settingsTest
  </code></pre>
  
  <p>it throw:</p>
  
  <pre><code>Traceback (most recent call last):
    File "manage.py", line 11, in &lt;module&gt;
      execute_manager(settings)
    File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 362, in execute_manager
      ...
    File "/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py", line 193, in execute
      return Database.Cursor.execute(self, query, params)
  sqlite3.OperationalError: no such table: programas_act_actividadesprograma
  </code></pre>
  
  <p>but i have in settingsTest.py</p>
  
  <pre><code>INSTALLED_APPS = (
      'django.contrib.auth',
      ...
  
      'site.programas_act',
      ...
  )
  </code></pre>
  
  <p>and in /var/www/site/programas_act/models.py</p>
  
  <pre><code>class ActividadesPrograma(models.Model):
      ...
  </code></pre>
  
  <p>I removed the file named in settingsTest.DATABASE_NAME and run:</p>
  
  <pre><code>python manage.py syncdb --setting=settingsTest
  </code></pre>
  
  <p>but still failing.</p>
  
  <p>If i run in django shell_plus:</p>
  
  <pre><code>import settings
  print settings.INSTALLED_APPS
  for app in settings.INSTALLED_APPS:
      print app
  </code></pre>
  
  <p>I can see the app, but when i run:</p>
  
  <pre><code>from django.db import connection
  cursor = connection.cursor()
  qry="""SELECT name FROM sqlite_master
  WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%%'
  UNION ALL
  SELECT name FROM sqlite_temp_master
  WHERE type IN ('table','view')
  ORDER BY 1"""
  cursor.execute(qry)
  results = cursor.fetchall()
  for tablename in results:
      print tablename
  </code></pre>
  
  <p>I can't found that tablename.</p>
  
  <p>Anyone can help me?</p>
  
  <p>Thanks</p>