I was using Django and Sqlite3.
following the tutorial on django. It gave me an error.
I made my database file in terminal with
Im a allaround N00b
Code:
Last login: Thu Apr 22 06:50:43 on ttys001
noah-suttons-macbook-pro:~ NSutton$ cd /Users/NSutton/webpoll
noah-suttons-macbook-pro:webpoll NSutton$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/Library/Python/2.6/site-packages/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 222, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.6/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/Library/Python/2.6/site-packages/django/core/management/commands/syncdb.py", line 49, in handle_noargs
cursor = connection.cursor()
File "/Library/Python/2.6/site-packages/django/db/backends/__init__.py", line 81, in cursor
cursor = self._cursor()
File "/Library/Python/2.6/site-packages/django/db/backends/sqlite3/base.py", line 170, in _cursor
self.connection = Database.connect(**kwargs)
sqlite3.OperationalError: unable to open database file
noah-suttons-macbook-pro:webpoll NSutton$
following the tutorial on django. It gave me an error.
I made my database file in terminal with
Code:
sqlite3 webpoll.db
Im a allaround N00b