Skip to content

Commit fd3e9ca

Browse files
author
jcob
committed
intial code
1 parent 6d93e36 commit fd3e9ca

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

server/djangoproj/settings.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
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 = [
32+
'localhost', 'https://jolaya32-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/'
33+
]
34+
CSRF_TRUSTED_ORIGINS = ['https://jolaya32-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/']
3335

3436
REST_FRAMEWORK = {
3537
'DEFAULT_AUTHENTICATION_CLASSES': [],
@@ -61,7 +63,9 @@
6163
TEMPLATES = [
6264
{
6365
'BACKEND': 'django.template.backends.django.DjangoTemplates',
64-
'DIRS': [],
66+
'DIRS': [
67+
os.path.join(BASE_DIR,'frontend/static')
68+
],
6569
'APP_DIRS': True,
6670
'OPTIONS': {
6771
'context_processors': [
@@ -134,5 +138,7 @@
134138

135139
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
136140

137-
STATICFILES_DIRS = []
141+
STATICFILES_DIRS = [
142+
os.path.join(BASE_DIR,'frontend/static')
143+
]
138144

server/frontend/static/About.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<html>
22
<head>
33
<!-- Link the style sheet here -->
4+
<link rel="stylesheet" href="/static/style.css">
5+
<link rel="stylesheet" href="/static/bootstrap.min.css">
46
</head>
5-
<div>
7+
<div className="about-header">
8+
<h1>About Us</h1>
9+
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.
610
<nav class="navbar navbar-expand-lg navbar-light" style="background-color:darkturquoise; height: 1in;">
711
<div class="container-fluid">
812
<h2 style="padding-right: 5%;">Dealerships</h2>

0 commit comments

Comments
 (0)