py27-django and sqlite3
Frank Schima
macsforever2000 at macports.org
Mon Sep 17 16:19:34 PDT 2012
Hi all,
I have installed the py27-django port and I'm running through the django tutorial at projectdjango [1]. I modified the project settings.py file to use sqlite3 as follows:
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '/Users/schimaf/django/mysite/mysite', # Or path to database file if using sqlite3.
Everything seems to be working up to the command:
python manage.py syncdb
Then it fails with:
sqlite3.OperationalError: unable to open database file
I have the Macports sqlite3 port installed. I have permissions to the directory that it is writing to. I also tried with sudo and got the same error. I was wondering if anyone else has gotten past this problem?
Thanks!
Frank
[1] <https://docs.djangoproject.com/en/1.4/intro/tutorial01/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120917/9573844c/attachment.html>
More information about the macports-users
mailing list