diff --git a/graphicsdesignspace/settings.py b/graphicsdesignspace/settings.py index b3fb3a5..a212f2d 100644 --- a/graphicsdesignspace/settings.py +++ b/graphicsdesignspace/settings.py @@ -130,16 +130,15 @@ # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases -if 'DATABASE_URL' in os.environ: - DATABASES = { - 'default': dj_database_url.parse(os.getenv('DATABASE_URL')) - } -else: - DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } +DATABASES = { + 'default': { + 'ENGINE': os.getenv('ENGINE'), + 'NAME': os.getenv('NAME'), + 'USER': os.getenv('USER'), + 'PASSWORD': os.getenv('PASSWORD'), + 'HOST': os.getenv('HOST'), + 'PORT': os.getenv('PORT'), + } } diff --git a/products/templates/products/product_list.html b/products/templates/products/product_list.html index 3dd7aa4..0deb7d0 100644 --- a/products/templates/products/product_list.html +++ b/products/templates/products/product_list.html @@ -54,7 +54,7 @@