I deleted the file and When I do python manage.py syncdb and the message ends up with: File "/usr/lib/python2.5/site-packages/django/core/management/ __init__.py", li ne 304, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.5/site-packages/django/core/management/ base.py", line 1 95, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.5/site-packages/django/core/management/ base.py", line 2 22, in execute output = self.handle(*args, **options) File "/usr/lib/python2.5/site-packages/django/core/management/ base.py", line 3 51, in handle return self.handle_noargs(**options) File "/usr/lib/python2.5/site-packages/django/core/management/ commands/syncdb. py", line 49, in handle_noargs cursor = connection.cursor() File "/usr/lib/python2.5/site-packages/django/db/backends/ __init__.py", line 8 1, in cursor cursor = self._cursor() File "/usr/lib/python2.5/site-packages/django/db/backends/sqlite3/ base.py", li ne 170, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$
is it my settings.py which for database has “# Django settings for mysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'my sql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = '/django-trunk/build/lib/django/bin/ mysite' # Or pat h 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 wit h sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. # Local time zone for this installation. Choices can be found here: @ "settings.py" 81 lines, 2871 characters On May 4, 10:01 am, Phil Mocek <pmocek-list-django-us...@mocek.org> wrote: > On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote: > > I created a mysite.db in my directory by vi. > > It's highly unlikely that you will be able to create a valid > SQLitedatabaseusing a text editor. You should delete thatfile, > then expect it to be created when you run the 'syncdb' command. > > -- > Phil Mocek --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---