I am a beginner of django and read "Practical django projects". The book states the following:
DATABASE_ENGINE = βsqlite3β²
However, the settings.py DATABASES file uses the dictionary instead -
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # 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.
}
}
Is this a different version, or am I mistaken? Also, please offer any online tutorials that you think will help me learn django.
user507220
source
share