Reputation: 197
I'm completely new to Django and have no idea what that means. I'm really just trying to get codenode setup for sage. I've tried following the installation guide at codenode's website, but when I load localhost:8000, I get the following message and a whole bunch of debug text:
settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
Could someone walk me through this or at least point me to something? I've checked out a few of the other answers on the site, but I can't follow any of them. I'm really grateful for the help.
As requested, the DATABASES part of my settings file reads:
DATABASE_ENGINE = 'django.db.backends.sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = os.path.join(HOME_PATH, 'codenode.db') # Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
Upvotes: 1
Views: 249
Reputation: 6335
A sample database setting for SQLite would look like this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'local.sqlite3',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
Upvotes: 1