From a6a5b3dcedcfe6cd58f75b5934cd42b4359ae9b9 Mon Sep 17 00:00:00 2001 From: Aashish257 Date: Sun, 29 Jun 2025 09:08:32 -0400 Subject: [PATCH 1/6] Adding temporary changes to Github --- server/djangoproj/settings.py | 10 ++++++-- server/djangoproj/urls.py | 2 ++ server/frontend/static/About.html | 16 ++++++++----- server/frontend/static/Contact.html | 37 +++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 server/frontend/static/Contact.html diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..f04b2c2915 100644 --- a/server/djangoproj/settings.py +++ b/server/djangoproj/settings.py @@ -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,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -STATICFILES_DIRS = [] +STATICFILES_DIRS = [ + os.path.join(BASE_DIR,'frontend/static') +] +ALLOWED_HOSTS=['localhost','https://arshilkande9-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] +CSRF_TRUSTED_ORIGINS=['https://arshilkande9-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] \ No newline at end of file diff --git a/server/djangoproj/urls.py b/server/djangoproj/urls.py index 6808da9141..af93a653bc 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -20,6 +20,8 @@ from django.conf import settings urlpatterns = [ + path('contact/', TemplateView.as_view(template_name="Contact.html")), + path('about/', TemplateView.as_view(template_name="About.html")), path('admin/', admin.site.urls), path('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), diff --git a/server/frontend/static/About.html b/server/frontend/static/About.html index 484efd960f..0553f06aab 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,8 @@ + +