py27-django and sqlite3

Frank Schima macsforever2000 at
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 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 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?


[1] <>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list