Skip to content

Commit

Permalink
Change database and update product cards to card group
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed May 19, 2023
1 parent 1092ba3 commit 63faa88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions graphicsdesignspace/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}
}


Expand Down
2 changes: 1 addition & 1 deletion products/templates/products/product_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2 class="section-heading">Products</h2>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-3">

{% for product in product_list %}
<div class="col">
<div class="col card-group">
<div class="card product-card-bg">

<!-- card image -->
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
asgiref==3.5.2
backports.zoneinfo==0.2.1
backports.zoneinfo;python_version<"3.9"
certifi==2022.6.15
cffi==1.15.1
charset-normalizer==2.1.0
Expand Down

0 comments on commit 63faa88

Please sign in to comment.