Skip to content

Commit 4fc9ec1

Browse files
committed
Adding temporary changes to Github
1 parent d1f2c5f commit 4fc9ec1

File tree

4 files changed

+79
-6
lines changed

4 files changed

+79
-6
lines changed

server/djangoproj/settings.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
# SECURITY WARNING: don't run with debug turned on in production!
2929
DEBUG = True
3030

31-
ALLOWED_HOSTS = []
32-
CSRF_TRUSTED_ORIGINS = []
31+
ALLOWED_HOSTS = [https://mikhailovska-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai]
32+
CSRF_TRUSTED_ORIGINS = [https://mikhailovska-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai]
3333

3434
REST_FRAMEWORK = {
3535
'DEFAULT_AUTHENTICATION_CLASSES': [],
@@ -61,7 +61,9 @@
6161
TEMPLATES = [
6262
{
6363
'BACKEND': 'django.template.backends.django.DjangoTemplates',
64-
'DIRS': [],
64+
'DIRS': [
65+
os.path.join(BASE_DIR,'frontend/static')
66+
],
6567
'APP_DIRS': True,
6668
'OPTIONS': {
6769
'context_processors': [
@@ -134,5 +136,7 @@
134136

135137
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
136138

137-
STATICFILES_DIRS = []
139+
STATICFILES_DIRS = [
140+
os.path.join(BASE_DIR,'frontend/static')
141+
]
138142

server/djangoproj/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from django.conf import settings
2121

2222
urlpatterns = [
23+
path('contact/', TemplateView.as_view(template_name="Contact.html")),
2324
path('admin/', admin.site.urls),
2425
path('djangoapp/', include('djangoapp.urls')),
2526
path('', TemplateView.as_view(template_name="Home.html")),

server/frontend/static/About.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<head>
3-
<!-- Link the style sheet here -->
3+
<link rel="stylesheet" href="/static/style.css">
4+
<link rel="stylesheet" href="/static/bootstrap.min.css">
45
</head>
56
<div>
67
<nav class="navbar navbar-expand-lg navbar-light" style="background-color:darkturquoise; height: 1in;">
@@ -27,7 +28,8 @@ <h2 style="padding-right: 5%;">Dealerships</h2>
2728

2829
<div class="card" style="width: 80%;margin: auto; margin-top:5%;">
2930
<div class="banner" name="about-header">
30-
<!-- Insert header information here -->
31+
<h1>About Us</h1>
32+
Welcome to Best Cars dealership, home to the best cars in North America. We deal in sale of domestic and imported cars at reasonable prices.
3133
</div>
3234
<div style="display: flex;flex-direction: row; margin:auto">
3335
<div class="card" style="width: 30%;">
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<html>
2+
3+
<head>
4+
<!-- Link the style sheet here -->
5+
<link rel="stylesheet" href="/static/style.css">
6+
<link rel="stylesheet" href="/static/bootstrap.min.css">
7+
</head>
8+
9+
<div>
10+
<nav class="navbar navbar-expand-lg navbar-light" style="background-color:darkturquoise; height: 1in;">
11+
<div class="container-fluid">
12+
<h2 style="padding-right: 5%;">Dealerships</h2>
13+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
14+
data-bs-targetdata-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false"
15+
aria-label="Toggle navigation">
16+
<span class="navbar-toggler-icon"></span>
17+
</button>
18+
<div class="collapse navbar-collapse" id="navbarText">
19+
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
20+
<li class="nav-item">
21+
<a class="nav-link" style="font-size: larger;" aria-current="page" href="/">Home</a>
22+
</li>
23+
<li class="nav-item">
24+
<a class="nav-link active" style="font-size: larger;" href="/about">About Us</a>
25+
</li>
26+
<li class="nav-item">
27+
<a class="nav-link" style="font-size: larger;" href="/contact">Contact Us</a>
28+
</li>
29+
</ul>
30+
</div>
31+
</div>
32+
</nav>
33+
34+
<div class="card" style="width: 80%;margin: auto; margin-top:5%;">
35+
<div name="about-header">
36+
<!-- Insert header information here -->
37+
<img src="/static/person2.png" class="card-img-top" alt="Card image" width="300" height="300" >
38+
39+
</div>
40+
<div style="display: flex;flex-direction: row; margin:auto">
41+
<div class="card" style="width: 50%;">
42+
<img class="card-img-top" src="/static/person3.png" alt="Card image">
43+
</div>
44+
45+
<div class="card" style="width: 50%; text-align: center; color:blue">
46+
<div class="card-body">
47+
<p class="card-text">Contact Customer Service</p>
48+
49+
50+
<p class="card-text">Contact Our Public Relations team</p>
51+
52+
53+
<p class="card-text">Contact the bestcars.com offices</p>
54+
<p>312-611-1111</p>
55+
56+
<p class="card-text">Become a bestcars.com dealer</p>
57+
<p>Visit growwithbescars.com</p>
58+
</div>
59+
</div>
60+
</div>
61+
</div>
62+
</div>
63+
64+
</div>
65+
66+
</html>

0 commit comments

Comments
 (0)