After saying "Python manage.py syncdb" "error message" is unable to open "database file"
.
Here is the main part of my settings. Settings:
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle' DATABASE_NAME = 'apps.db' # or path of database file If using sqlite3 DATABASE_USER = '' # Sqlite3 is not used with DATABASE_PASSWORD = '# Sqlite3 not used with DATABASE_HOST =' # Set the empty string for the local host. DATABASE_PORT not used with Sqlite3 = 'Set to empty string for default. Not used with Sqlite3 and here are the permissions for "apps.db":
-rw-r - r-- 1 root Root 33792 19. July 10: 51 apps.db My Dzegogo server is called from Apache ... I do not know what to do with this permission, but apps.db The owner of "Change to www-data" is not working either
[edit]
To ensure that www-data can access to all of this I did the following:
has done the following:
chown -r www-data apps rm apps.db su www-data python manage.py syncdb but it still does not work: (< /p>
Ensure that Apache can also write in the root directory of SQLite Need to be able to write in this directory.
Ensure that your database does not start with every folder number in the full path of the file, eg / Www / 4myweb / db (on Windows 2000) was seen) .
If DATABASE_NAME is set to 'Goproject / db / db' like '/ users / yourname / sites / mydjan', make sure that you have created the 'db' directory for the first time.
Ensure that your / TMP directory is world-scalable (there will not be a possible cause for your system as a possible cause).
P> HTML>
Comments
Post a Comment