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:
Chris Shyi
2018-06-04 17:31:54 -04:00
parent 3fdf3029e2
commit 248e9b0ab6
5 changed files with 37 additions and 21 deletions

View File

@@ -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': '',
}
}