Wednesday, March 2, 2011

Re: newbie going through basic tutorial

On 3/2/11, Kenneth Gonsalves <lawgon@thenilgiris.com> 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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> 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)
mehgcap@gmail.com; http://www.facebook.com/mehgcap

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate