diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..7fda227c7d 100644 --- a/server/djangoproj/settings.py +++ b/server/djangoproj/settings.py @@ -28,8 +28,8 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] -CSRF_TRUSTED_ORIGINS = [] +ALLOWED_HOSTS = ['localhost','https://keerthanasi2-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] +CSRF_TRUSTED_ORIGINS = ['https://keerthanasi2-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [], @@ -61,7 +61,9 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [ + os.path.join(BASE_DIR,'frontend/static') + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -134,5 +136,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -STATICFILES_DIRS = [] +STATICFILES_DIRS = [ + os.path.join(BASE_DIR,'frontend/static') +] diff --git a/server/djangoproj/urls.py b/server/djangoproj/urls.py index 6808da9141..4e7d9511df 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -20,7 +20,9 @@ from django.conf import settings urlpatterns = [ + path('about/', TemplateView.as_view(template_name="About.html")), path('admin/', admin.site.urls), + path('contact/', TemplateView.as_view(template_name="Contact.html")), path('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/server/frontend/static/About.html b/server/frontend/static/About.html index 484efd960f..636dc95ca4 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,8 +1,9 @@ - + + -
+ -
- -
+
+ +
- Card image + Veloz
-

Person1

-

Person1 Title

-

Some text that explains the person1 in about 2 short sentences

-

person1@example.com

+

Veloz

+

Veloz Motors

+

Veloz Motors specializes in high-performance luxury cars.

+

velozmotors@gmail.com

- Card image + Aarav Vez
-

Person2

-

Person2 Title

-

Some text that explains the person2 in about 2 short sentences

-

person2@example.com

+

Aarav Veer

+

🇮🇳 Aarav Automotives

+

Aarav Automotives brings a curated range of reliable, budget-friendly cars with a focus on Indian roads, values, and vibrant lifestyles.

+

aaravmotors@gmail.com

- Card image + Crimson Shaw
-

Person3

-

Person3 Title

-

Some text that explains the person3 in about 2 short sentences

-

person3@example.com

+

Crimson Shaw

+

Crimson Drive Autohaus

+

Crimson Drive offers a premium selection of rugged SUVs and powerful sedans, perfect for those who chase adventure with elegance.

+

crimsonautomotives@gmail.com

-
-
- -
- - +
+ + \ No newline at end of file diff --git a/server/frontend/static/Contact.html b/server/frontend/static/Contact.html new file mode 100644 index 0000000000..5751172be8 --- /dev/null +++ b/server/frontend/static/Contact.html @@ -0,0 +1,135 @@ + + + + + + Contact Us - Best Cars Dealership + + + + + + + +
+
+

Contact Us

+

We'd love to hear from you! Reach out through any of these channels.

+
+ +
+
+
📞
+

Phone

+

Main: (555) 123-4567

+

Sales: (555) 123-4568

+

Service: (555) 123-4569

+
+ +
+
✉️
+

Email

+

General: info@bestcars.com

+

Sales: sales@bestcars.com

+

Support: support@bestcars.com

+
+ +
+
🏢
+

Address

+

123 Auto Boulevard

+

Motor City, MC 12345

+

United States

+
+
+ +
+

Send Us a Message

+
+ + + + + +
+
+
+ + \ No newline at end of file diff --git a/server/frontend/static/person1.jpg b/server/frontend/static/person1.jpg new file mode 100644 index 0000000000..ed0a091351 Binary files /dev/null and b/server/frontend/static/person1.jpg differ diff --git a/server/frontend/static/person2.jpg b/server/frontend/static/person2.jpg new file mode 100644 index 0000000000..18f1e75565 Binary files /dev/null and b/server/frontend/static/person2.jpg differ diff --git a/server/frontend/static/person3.jpg b/server/frontend/static/person3.jpg new file mode 100644 index 0000000000..25519b6d02 Binary files /dev/null and b/server/frontend/static/person3.jpg differ