From c42a2cdc49e8a135d594f5d58b56b7b6beea3503 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 3 Nov 2017 17:39:47 +0100 Subject: [PATCH] add the db config to the django settings --- django/webshop/webshop/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/django/webshop/webshop/settings.py b/django/webshop/webshop/settings.py index 58e96e9..05d7a0d 100644 --- a/django/webshop/webshop/settings.py +++ b/django/webshop/webshop/settings.py @@ -75,8 +75,12 @@ WSGI_APPLICATION = 'webshop.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'webshopdb', + 'USER': 'webshop', + 'PASSWORD': '2YKtY53F3HDDzPyExAaSh3jdVNh6VN', + 'HOST': '127.0.0.1', + 'PORT': '3306', } }