diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..73f69e0
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..787f961
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+Herbworld
\ No newline at end of file
diff --git a/.idea/Herbworld.iml b/.idea/Herbworld.iml
new file mode 100644
index 0000000..9cf6ca9
--- /dev/null
+++ b/.idea/Herbworld.iml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..f56ad02
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..ef6921a
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/prettier.xml b/.idea/prettier.xml
new file mode 100644
index 0000000..b0ab31a
--- /dev/null
+++ b/.idea/prettier.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/herb_world/settings.py b/herb_world/settings.py
index 8060994..72c1ef0 100644
--- a/herb_world/settings.py
+++ b/herb_world/settings.py
@@ -35,6 +35,13 @@
ALLOWED_HOSTS = []
+PSQL_HOST = os.environ.get('PSQL_HOST')
+PSQL_PORT = os.environ.get('PSQL_PORT')
+PSQL_USER = os.environ.get('PSQL_USER')
+PSQL_PASSWORD = os.environ.get('PSQL_PASSWORD')
+PSQL_DB = os.environ.get('PSQL_DB')
+
+
# Application definition
INSTALLED_APPS = [
@@ -82,9 +89,13 @@
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ "default": {
+ "ENGINE": "django.db.backends.postgresql",
+ "NAME": PSQL_DB,
+ "USER": PSQL_USER,
+ "PASSWORD": PSQL_PASSWORD,
+ "HOST": PSQL_HOST,
+ "PORT": PSQL_PORT,
}
}
diff --git a/herbworldapp/templates/herbworldapp/home.html b/herbworldapp/templates/herbworldapp/home.html
index a29145c..c41c0db 100644
--- a/herbworldapp/templates/herbworldapp/home.html
+++ b/herbworldapp/templates/herbworldapp/home.html
@@ -23,10 +23,11 @@
{% block body %}
{% csrf_token %}
-{% if messages %}
- {% for message in messages %}
- {{ message }}
- {% endfor %}
+{% if messages %}
+
+{% for message in messages %}
+{{ message }}
+{% endfor %}
{% endif %}
@@ -64,7 +65,8 @@
10000<
- Plants bring natural beauty to our living spaces. By creating texture and balance, a room or patio can be transformed into an environment that comforts and welcomes.
+ Plants bring natural beauty to our living spaces. By creating texture and balance, a room or patio can be
+ transformed into an environment that comforts and welcomes.
But, just like Miss Universe, plants can do more than look pretty.
Come and explore the world of home-plants with Us!
@@ -91,8 +93,8 @@
500+
- Each of Nursery partners gaurantee quality plants and plant-related products.
- Browse through more than 500 Nurseries and find the one nearest you to bring your green friends home!
+ Each of Nursery partners gaurantee quality plants and plant-related products.
+ Browse through more than 500 Nurseries and find the one nearest you to bring your green friends home!