From a6bf36c23a940f12d4a9569d0a7e220929c45c34 Mon Sep 17 00:00:00 2001 From: Vamsi23 Date: Tue, 22 Apr 2025 07:49:36 -0400 Subject: [PATCH 01/23] About us changes --- server/djangoproj/settings.py | 8 +++---- server/djangoproj/urls.py | 1 + server/frontend/static/About.html | 34 ++++++++++++++++------------- server/frontend/static/person.png | Bin 138137 -> 0 bytes server/frontend/static/person1.jpg | Bin 0 -> 746276 bytes server/frontend/static/person2.jpg | Bin 0 -> 1919484 bytes server/frontend/static/person3.jpg | Bin 0 -> 138384 bytes 7 files changed, 24 insertions(+), 19 deletions(-) delete mode 100644 server/frontend/static/person.png create mode 100644 server/frontend/static/person1.jpg create mode 100644 server/frontend/static/person2.jpg create mode 100644 server/frontend/static/person3.jpg diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..390fce57cc 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://vamsikalapal-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/'] +CSRF_TRUSTED_ORIGINS = ['https://vamsikalapal-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/'] REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [], @@ -61,7 +61,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [os.path.join(BASE_DIR,'frontend/static')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -134,5 +134,5 @@ 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..a29f949c60 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -23,4 +23,5 @@ path('admin/', admin.site.urls), path('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), + path('about/', TemplateView.as_view(template_name="About.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..7f10eeafcd 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,8 @@ + +