Change database settings
Edited settings.py to use PostgreSQL. Made some minor changes in views.py to incorporate the new models.
This commit is contained in:
@@ -76,8 +76,12 @@ WSGI_APPLICATION = 'musicvis.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'spotifyvis',
|
||||
'USER': 'django',
|
||||
'PASSWORD': 'django',
|
||||
'HOST': 'localhost',
|
||||
'PORT': '',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user