title: Django is "unable to open database file"
body: <p>after running "python manage.py syncdb" i gett an error saying "unable to open database file".</p>
  
  <p>here is the important part from my settings.py:</p>
  
  <pre><code>DATABASE_ENGINE = 'sqlite3'    # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  DATABASE_NAME = 'apps.db'      # Or path to database file if using sqlite3.
  DATABASE_USER = ''             # Not used with sqlite3.
  DATABASE_PASSWORD = ''         # Not used with sqlite3.
  DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
  DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
  </code></pre>
  
  <p>and here are the permissions for "apps.db":</p>
  
  <pre><code>-rw-r--r-- 1 root root 33792 19. Jul 10:51 apps.db
  </code></pre>
  
  <p>My django server is called from apache... i don't know if it has to do with the permissions but changing the owner of apps.db to "www-data" did not work either</p>
  
  <p>[edit]</p>
  
  <p>to ensure www-data can access all of this i did the following: </p>
  
  <p>did the following:</p>
  
  <pre><code>chown -R www-data apps
  rm apps.db
  su www-data
  python manage.py syncdb
  </code></pre>
  
  <p>but it still does not work :(</p>