Wednesday, 11 September 2013

syncdb django database file

syncdb django database file

Here is my database settings. My manage.py is in the same directory as my
database folder. When I run the command "python manage.py syncdb" i get an
error
OperationError: unable to open database file
Does database file need to be in the same directory as the manage.py? If
so, what is the point of setting the path to the database file?
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME':
'~/Development/Django/public_pictures/database/database.db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}

No comments:

Post a Comment