From 02b1eb60032439953e8ff40416862b41423d6839 Mon Sep 17 00:00:00 2001 From: Ruslan Ignatov Date: Tue, 12 Jul 2022 14:49:08 +0300 Subject: [PATCH] Switched to MySQL --- dnd_db_site/settings.py | 8 ++++++-- main/templates/main/pagetemplate.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dnd_db_site/settings.py b/dnd_db_site/settings.py index dd702d0..24c1bd6 100644 --- a/dnd_db_site/settings.py +++ b/dnd_db_site/settings.py @@ -80,8 +80,12 @@ WSGI_APPLICATION = 'dnd_db_site.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', + 'ENGINE': 'django.db.backends.mysql', + 'NAME': env('DB_NAME'), + 'USER': env('DB_USER'), + 'PASSWORD': env('DB_PASSWORD'), + 'HOST': 'localhost', + 'PORT': '', } } diff --git a/main/templates/main/pagetemplate.html b/main/templates/main/pagetemplate.html index 5884f27..a7d92e4 100644 --- a/main/templates/main/pagetemplate.html +++ b/main/templates/main/pagetemplate.html @@ -7,7 +7,7 @@ {% block pagetitle %}{% endblock %} - + {% block additional_css %}