From 17d300ce69fa0eb09748862f84dbd64fb66b0206 Mon Sep 17 00:00:00 2001 From: Msiko Date: Tue, 13 May 2025 12:03:18 +0200 Subject: [PATCH 1/8] Adding temporary changes to Github --- server/djangoproj/settings.py | 8 +-- server/djangoproj/urls.py | 2 + server/frontend/static/About.html | 10 ++-- server/frontend/static/Contact.html | 68 ++++++++++++++++++++++++++ server/frontend/static/callcenter.png | Bin 0 -> 217335 bytes server/frontend/static/person1.jpg | Bin 0 -> 29249 bytes server/frontend/static/person2.jpg | Bin 0 -> 135814 bytes server/frontend/static/person3.jpg | Bin 0 -> 215814 bytes 8 files changed, 81 insertions(+), 7 deletions(-) create mode 100644 server/frontend/static/Contact.html create mode 100644 server/frontend/static/callcenter.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..f0118a06b2 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','127.0.0.1'] +CSRF_TRUSTED_ORIGINS=['http://127.0.0.1:8000/'] 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..5825f366ef 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -23,4 +23,6 @@ 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")), + 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..0ae5ec6bb5 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,8 @@ + +