My settings.py file looks like this:

DATABASE_ENGINE = 'sqlite3'    # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '/usr/bin/scripts/mysite/books' # 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.

I do not have a database file yet. I am just setting this up.

I ran the interactive shell with: python manage.py shell. Then
entered:

In [1]: from django.db import connection
In [2]: cursor = connection.cursor()

Here is where it bombed:

---> 58             self.connection = Database.connect(**kwargs)

This is the error message:

OperationalError: unable to open database file

Am I supposed to already have a database file? I have been trying to
follow the examples given in djangobook.com, and I don't see where I
was supposed to create a file before running those commands.
DATABASE_NAME is set to where I want the file to go.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to