Hi, I'm also a newb going through this tutorial and got stuck on the exact 
same thing. I'm using mac, but I also needed to put '.db' on it, and now 
it's working great! Thanks for posting up that solution! I was just fitzing 
with it the last half-hour to no avail. But now i got it! woo!

On Wednesday, March 2, 2011 3:43:40 PM UTC-6, Alex wrote:
>
> Well, looks like things are suddenly working. I started over, and
> changed two things: I removed the path from the database file name and
> I gave it an extension of .db. The file appeared in the same place as
> before, so my path was right, but the .db extension seems to have made
> something quite happy as things are now working quite nicely.
>
> On 3/2/11, Alex Hall <meh...@gmail.com <javascript:>> wrote:
> > On 3/2/11, Kenneth Gonsalves <law...@thenilgiris.com <javascript:>> 
> wrote:
> >> On Tue, 2011-03-01 at 23:14 -0500, Alex Hall wrote:
> >>> I get a very long traceback, ending with sqlite3.OperationalError:
> >>> unable to open database file.
> >>
> >> looks like a permissions problem. Does the webserver have permissions to
> >> write to the parent directory of the sqllite file?
> > Sorry, but how would I tell? I am on Windows7x64, Python2.7.
> >>
> >> btw, it is good practice to paste the traceback at the bottom of your
> >> mail (yes it is long, but people here are experts at reading and
> >> diagnosing from them)
> > Okay, here it is:
> > Traceback (most recent call last):
> >   File "manage.py", line 11, in <module>
> >     execute_manager(settings)
> >   File 
> "c:\python27\lib\site-packages\django\core\management\__init__.py",
> > line 438, in execute_manager
> >     utility.execute()
> >   File 
> "c:\python27\lib\site-packages\django\core\management\__init__.py",
> > line 379, in execute
> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >   File "c:\python27\lib\site-packages\django\core\management\base.py",
> > line 191, in run_from_argv
> >     self.execute(*args, **options.__dict__)
> >   File "c:\python27\lib\site-packages\django\core\management\base.py",
> > line 220, in execute
> >     output = self.handle(*args, **options)
> >   File "c:\python27\lib\site-packages\django\core\management\base.py",
> > line 286, in handle
> >     app_output = self.handle_app(app, **options)
> >   File
> > "c:\python27\lib\site-packages\django\core\management\commands\sql.py",
> > line 19, in handle_app
> >     return u'\n'.join(sql_create(app, self.style,
> > connections[options.get('database',
> > DEFAULT_DB_ALIAS)])).encode('utf-8')
> >   File "c:\python27\lib\site-packages\django\core\management\sql.py",
> > line 26, in sql_create
> >     tables = connection.introspection.table_names()
> >   File "c:\python27\lib\site-packages\django\db\backends\__init__.py",
> > line 504, in table_names
> >     cursor = self.connection.cursor()
> >   File "c:\python27\lib\site-packages\django\db\backends\__init__.py",
> > line 75, in cursor
> >     cursor = self._cursor()
> >   File 
> "c:\python27\lib\site-packages\django\db\backends\sqlite3\base.py",
> > line 174, in _cursor
> >     self.connection = Database.connect(**kwargs)
> > sqlite3.OperationalError: unable to open database file
> >
> >> --
> >> regards
> >> KG
> >> http://lawgon.livejournal.com
> >> Coimbatore LUG rox
> >> http://ilugcbe.techstud.org/
> >>
> >> --
> >> You received this message because you are subscribed to the Google 
> Groups
> >> "Django users" group.
> >> To post to this group, send email to 
> >> django...@googlegroups.com<javascript:>
> .
> >> To unsubscribe from this group, send email to
> >> django-users...@googlegroups.com <javascript:>.
> >> For more options, visit this group at
> >> http://groups.google.com/group/django-users?hl=en.
> >>
> >>
> >
> >
> > --
> > Have a great day,
> > Alex (msg sent from GMail website)
> > meh...@gmail.com <javascript:>; http://www.facebook.com/mehgcap
> >
>
>
> -- 
> Have a great day,
> Alex (msg sent from GMail website)
> meh...@gmail.com <javascript:>; http://www.facebook.com/mehgcap
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BvYJMl4UjucJ.
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.

Reply via email to