What does your DATABASE_NAME setting set to in your settings.py file? I know django gives that error if the path is set incorrectly. It needs to say something like: '/home/user_name/django_project/ your_database.db' if you're using sqlite
On Sep 23, 4:47 pm, RcCypher <lawsof...@gmail.com> wrote: > First I'd like to say that I'm completely new to this. I am not very > Linux savvy and I am trying to learn as I go. SO now to jump off the > deep end (for me anyway). I setup my server (ubuntu 8.1) installed > python version 2.6.2 installed django by following the install guide. > I began the tutorial project and began customizing things as it said. > I reached the point where the tutorial is telling me to run > > "python manage.py syncdb" > > when i first ran this command i recieved an error stating that sqlite3 > did not exist. This confused me but I managed to fix the problem by > manually installing sqlite3 however having rid myself of that error I > now receive the following error. > > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "/usr/local/lib/python2.6/django/core/management/__init__.py", > line 439, > utility.execute() > File "/usr/local/lib/python2.6/django/core/management/__init__.py", > line 380, > self.fetch_command(subcommand).run_from_argv(self.argv) > File "/usr/local/lib/python2.6/django/core/management/base.py", line > 195, in r > self.execute(*args, **options.__dict__) > File "/usr/local/lib/python2.6/django/core/management/base.py", line > 222, in e > output = self.handle(*args, **options) > File "/usr/local/lib/python2.6/django/core/management/base.py", line > 351, in h > return self.handle_noargs(**options) > File "/usr/local/lib/python2.6/django/core/management/commands/ > syncdb.py", lin > cursor = connection.cursor() > File "/usr/local/lib/python2.6/django/db/backends/__init__.py", line > 81, in cu > cursor = self._cursor() > File "/usr/local/lib/python2.6/django/db/backends/sqlite3/base.py", > line 170, > self.connection = Database.connect(**kwargs) > pysqlite2.dbapi2.OperationalError: unable to open database file > > So far I have been unable to trace down what the particular problem > is. Any help would be greatly appreciated! No doubt this is either > obvious or caused by my own ignorance of what I am doing, so any > background info would also be helpful. > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---