Viene visualizzato questo errore durante la configurazione di un server in Django. È sqlite3 che significa che dovrebbe creare il file .db ma sembra che non lo stia facendo. Ho stipulato SQLite come back-end e un percorso file assoluto per dove metterlo, ma senza fortuna.sqlite3.OperationalError: impossibile aprire il file di database
È un errore o sto facendo qualcosa di sbagliato? (Stavo pensando, è il percorso di file assoluto specificato diversamente in Ubuntu?)
Qui è l'inizio del mio file settings.py:
# Django settings for OmniCloud project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '~/Harold-Server/OmniCloud.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
Che peccato che il messaggio di errore originale non copra il nome del file che causa l'errore, che potrebbe aiutare un po '. – Hartmut