diff --git a/agfzb-CloudAppDevelopment_Capstone b/agfzb-CloudAppDevelopment_Capstone new file mode 160000 index 0000000000..a3d6f97cdd --- /dev/null +++ b/agfzb-CloudAppDevelopment_Capstone @@ -0,0 +1 @@ +Subproject commit a3d6f97cddee5a7c4515fe13618c451bc8a600e3 diff --git a/server/djangoapp/templates/djangoapp/about.html b/server/djangoapp/templates/djangoapp/about.html new file mode 100644 index 0000000000..12e2daaf08 --- /dev/null +++ b/server/djangoapp/templates/djangoapp/about.html @@ -0,0 +1,33 @@ + + + + + Dealership Review + + + + + + + + + + + + +
+

+ Welcome to Best Cars dealership, home to the best cars in North America. We sell domestic and imported cars at reasonable prices. +

+
+ + + + \ No newline at end of file diff --git a/server/djangoapp/templates/djangoapp/contact.html b/server/djangoapp/templates/djangoapp/contact.html new file mode 100644 index 0000000000..1a283bcc7c --- /dev/null +++ b/server/djangoapp/templates/djangoapp/contact.html @@ -0,0 +1,33 @@ + + + + + Dealership Review + + + + + + + + + + + + +
+
+

Contact Information


+

Address: xxxx


+

Phone: xxx xxx xxx


+
+ + diff --git a/server/djangoapp/templates/djangoapp/index.html b/server/djangoapp/templates/djangoapp/index.html index 1a9ee6e39a..14b62a996e 100644 --- a/server/djangoapp/templates/djangoapp/index.html +++ b/server/djangoapp/templates/djangoapp/index.html @@ -14,10 +14,16 @@ - - This is the index page of your Django app! + diff --git a/server/djangoapp/urls.py b/server/djangoapp/urls.py index 37b1c89d01..abc14a3679 100644 --- a/server/djangoapp/urls.py +++ b/server/djangoapp/urls.py @@ -10,6 +10,7 @@ # name the URL # path for about view + path(route='about', view=views.about, name='about'), # path for contact us view diff --git a/server/djangoapp/views.py b/server/djangoapp/views.py index 61cc664da0..f409cf1498 100644 --- a/server/djangoapp/views.py +++ b/server/djangoapp/views.py @@ -20,6 +20,10 @@ # Create an `about` view to render a static about page # def about(request): # ... +def about(request): + context = {} + if request.method == "GET": + return render(request, 'djangoapp/about.html', context) # Create a `contact` view to return a static contact page