From fe23addcc0599ba1c16624999fc436a4470d4828 Mon Sep 17 00:00:00 2001 From: Phani170 Date: Sat, 3 Aug 2024 00:39:05 -0400 Subject: [PATCH 01/12] Updated file changes to Github --- server/djangoproj/settings.py | 8 ++-- server/djangoproj/urls.py | 2 + server/frontend/static/About.html | 17 ++++++-- server/frontend/static/Contact.html | 63 +++++++++++++++++++++++++++++ server/frontend/static/style.css | 3 ++ 5 files changed, 86 insertions(+), 7 deletions(-) create mode 100644 server/frontend/static/Contact.html diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..003f37be09 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://pothiniusedu-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] +CSRF_TRUSTED_ORIGINS=['https://pothiniusedu-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': [ diff --git a/server/djangoproj/urls.py b/server/djangoproj/urls.py index 6808da9141..7e970169fe 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('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), + path('contact/', TemplateView.as_view(template_name="Contact.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..3b2387713d 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,9 +1,14 @@ + + + + +
-