Skip to content

Commit 92947c7

Browse files
committed
Adding temporary changes to Github
1 parent 149265a commit 92947c7

File tree

7 files changed

+51
-5
lines changed

7 files changed

+51
-5
lines changed

server/db.sqlite3

128 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
6+
</head>
7+
<body>
8+
<h1>
9+
Welcome to Best Cars dealership, home to the best cars in North America. We sell domestic and imported cars at reasonable prices.
10+
</h1>
11+
</body>
12+
13+
14+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
6+
</head>
7+
<body>
8+
<h1>Contact Us<h1>
9+
<h2>
10+
Phone number: 000-111-2222 <br>
11+
Address: 1600 Pennsylvania Ave, Washington DC, DC 20500
12+
13+
</h2>
14+
</body>
15+
16+
17+
</html>

server/djangoapp/templates/djangoapp/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@
1515

1616
<body>
1717
<!-- Remove this line the first time you edit this file -->
18-
This is the index page of your Django app!
18+
1919
<!--Add a nav bar here -->
20+
<nav>
21+
<ul>
22+
<li><a href="#">Home</a></li>
23+
<li><a href="/djangoapp/about/">About Us</a></li>
24+
<li><a href="/djangoapp/contact/">Contact Us</a></li>
25+
</ul>
26+
</nav>
2027

2128
<!--Add a dealer table here -->
2229

server/djangoapp/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
# name the URL
1111

1212
# path for about view
13+
path(route='about/', view=views.about, name='about'),
1314

1415
# path for contact us view
16+
path(route='contact/', view=views.contact, name='contact'),
1517

1618
# path for registration
1719

server/djangoapp/views.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@
1717
# Create your views here.
1818

1919

20-
# Create an `about` view to render a static about page
21-
# def about(request):
22-
# ...
2320

21+
# Create an `about` view to render a static about page
22+
def about(request):
23+
context = {}
24+
if request.method == "GET":
25+
return render(request, 'djangoapp/about.html',context)
2426

2527
# Create a `contact` view to return a static contact page
2628
#def contact(request):
29+
def contact(request):
30+
context = {}
31+
if request.method == "GET":
32+
return render(request, 'djangoapp/contact_us.html',context)
2733

2834
# Create a `login_request` view to handle sign in request
2935
# def login_request(request):

server/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
requests
22
Django==3.1.3
3-
Pillow==8.0.1
3+
Pillow==10.1.0
44
gunicorn==20.1.0
55
ibm-cloud-sdk-core==3.10.0
66
ibm-watson==5.2.2

0 commit comments

Comments
 (0)