From 6a8a80f207dd82f3118d9f89ebeea0afb58844d9 Mon Sep 17 00:00:00 2001 From: ChrisGMD20 Date: Sun, 28 Jul 2024 08:53:41 +0100 Subject: [PATCH 01/10] commit --- server/djangoproj/settings.py | 13 +++++-- server/djangoproj/urls.py | 2 + server/frontend/static/About.html | 38 ++++++++++-------- server/frontend/static/Contact.html | 58 ++++++++++++++++++++++++++++ server/frontend/static/person1.png | Bin 0 -> 26588 bytes server/frontend/static/person2.png | Bin 0 -> 44339 bytes server/frontend/static/person3.png | Bin 0 -> 34908 bytes 7 files changed, 91 insertions(+), 20 deletions(-) create mode 100644 server/frontend/static/Contact.html create mode 100644 server/frontend/static/person1.png create mode 100644 server/frontend/static/person2.png create mode 100644 server/frontend/static/person3.png diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..a2cb268be6 100644 --- a/server/djangoproj/settings.py +++ b/server/djangoproj/settings.py @@ -56,12 +56,18 @@ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] +ALLOWED_HOSTS=['localhost','https://gabrieldiyou-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai', '127.0.0.1'] +CSRF_TRUSTED_ORIGINS=['https://gabrieldiyou-8000.theianext-1-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] + + ROOT_URLCONF = 'djangoproj.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [ + os.path.join(BASE_DIR,'frontend/static') + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -134,5 +140,6 @@ 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..245d35fa3f 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -20,6 +20,8 @@ from django.conf import settings urlpatterns = [ + path('about/', TemplateView.as_view(template_name="About.html")), + path('contact/', TemplateView.as_view(template_name="Contact.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..4552b11c79 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,9 @@ - + + + +